Skip to content

Commit

Permalink
CMake: don't hardcode "<prefix>/include" in target_include_directories
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored and nigels-com committed Jan 7, 2022
1 parent 3f922b3 commit 966e53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ if(CMAKE_VERSION VERSION_LESS 2.8.12)
else()
target_compile_definitions(glew_s INTERFACE "GLEW_STATIC")
foreach(t glew glew_s)
target_include_directories(${t} PUBLIC $<INSTALL_INTERFACE:include>)
target_include_directories(${t} PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
endforeach()
set(MAYBE_EXPORT EXPORT glew-targets)
endif()
Expand Down

0 comments on commit 966e53f

Please sign in to comment.