mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Removes an absolute path from glfwTargets.cmake
Invokes target_include_directories using generator expressions. The cmake package can now be relocated w/o error.
This commit is contained in:
parent
d2d89a8d80
commit
6297f916a6
@ -59,6 +59,8 @@ endif()
|
||||
|
||||
add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS})
|
||||
target_link_libraries(glfw ${glfw_LIBRARIES})
|
||||
target_include_directories(glfw PUBLIC $<INSTALL_INTERFACE:${GLFW_INSTALL_INCLUDE_DIR}>)
|
||||
|
||||
set_target_properties(glfw PROPERTIES
|
||||
OUTPUT_NAME "${GLFW_LIB_NAME}"
|
||||
VERSION ${GLFW_VERSION}
|
||||
@ -90,7 +92,6 @@ if (BUILD_SHARED_LIBS)
|
||||
endif()
|
||||
|
||||
if (GLFW_INSTALL)
|
||||
target_include_directories(glfw PUBLIC ${CMAKE_INSTALL_PREFIX}/include)
|
||||
install(TARGETS glfw EXPORT glfwTargets DESTINATION lib${LIB_SUFFIX})
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user