Fix use of absolute path in INSTALL_INTERFACE

Closes #1470.
This commit is contained in:
Konstantin Podsvirov 2019-04-18 19:50:48 +03:00 committed by Camilla Löwy
parent be71147ad5
commit 15af302f77

View File

@ -103,7 +103,7 @@ set_target_properties(glfw PROPERTIES
target_compile_definitions(glfw PRIVATE _GLFW_USE_CONFIG_H)
target_include_directories(glfw PUBLIC
"$<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_FULL_INCLUDEDIR}>")
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
target_include_directories(glfw PRIVATE
"${GLFW_SOURCE_DIR}/src"
"${GLFW_BINARY_DIR}/src"