mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 09:33:49 +00:00
Mark GLEW_BUILD PRIVATE to not affect consumers using add_subdirectory.
This commit is contained in:
parent
a96e6f1c45
commit
a8b341554f
@ -80,7 +80,7 @@ if(glew-cmake_BUILD_SHARED)
|
|||||||
OUTPUT_NAME "glew"
|
OUTPUT_NAME "glew"
|
||||||
DEBUG_POSTFIX d)
|
DEBUG_POSTFIX d)
|
||||||
|
|
||||||
target_compile_definitions(libglew_shared PUBLIC GLEW_BUILD ${DEFINITIONS})
|
target_compile_definitions(libglew_shared PRIVATE GLEW_BUILD ${DEFINITIONS})
|
||||||
target_include_directories(libglew_shared PUBLIC ${INCLUDE_DIR})
|
target_include_directories(libglew_shared PUBLIC ${INCLUDE_DIR})
|
||||||
target_link_libraries(libglew_shared ${LIBRARIES})
|
target_link_libraries(libglew_shared ${LIBRARIES})
|
||||||
set_target_properties(libglew_shared PROPERTIES VERSION ${GLEW_VERSION})
|
set_target_properties(libglew_shared PROPERTIES VERSION ${GLEW_VERSION})
|
||||||
|
Loading…
Reference in New Issue
Block a user