CMake: don't hardcode "<prefix>/include" in target_include_directories

This commit is contained in:
Dmitry Kalinkin 2022-01-06 21:37:57 -05:00
parent 3f922b3dc6
commit 6c33e593fc
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -176,7 +176,7 @@ if(CMAKE_VERSION VERSION_LESS 2.8.12)
else() else()
target_compile_definitions(glew_s INTERFACE "GLEW_STATIC") target_compile_definitions(glew_s INTERFACE "GLEW_STATIC")
foreach(t glew glew_s) foreach(t glew glew_s)
target_include_directories(${t} PUBLIC $<INSTALL_INTERFACE:include>) target_include_directories(${t} PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
endforeach() endforeach()
set(MAYBE_EXPORT EXPORT glew-targets) set(MAYBE_EXPORT EXPORT glew-targets)
endif() endif()