mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-29 09:11:56 +00:00
CMake: don't hardcode "<prefix>/include" in target_include_directories
This commit is contained in:
parent
3f922b3dc6
commit
966e53fa15
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user