 -    install(DIRECTORY include/GLFW DESTINATION include
 +    install(DIRECTORY include/GLFW DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
              FILES_MATCHING PATTERN glfw3.h PATTERN glfw3native.h)
-
+ 
      install(FILES "${GLFW_BINARY_DIR}/src/glfw3Config.cmake"
 @@ -404,7 +405,7 @@ if (GLFW_INSTALL)
              EXPORT_LINK_INTERFACE_LIBRARIES

-libdir=${exec_prefix}/lib@LIB_SUFFIX@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@

 Name: GLFW
Description: A multi-platform library for OpenGL, window and input

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -62,8 +62,8 @@ set_target_properties(glfw PROPERTIES
 
 target_compile_definitions(glfw PRIVATE -D_GLFW_USE_CONFIG_H)
 target_include_directories(glfw PUBLIC
-                           $<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/include>
