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 committed by Nigel Stewart
parent 3f922b3dc6
commit 966e53fa15

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()