mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-29 10:01:56 +00:00
Merge pull request #28 from hgs3/master
Define GLEW_BUILD only for libglew_shared and not consumer targets.
This commit is contained in:
commit
e34677f42b
@ -80,7 +80,7 @@ if(glew-cmake_BUILD_SHARED)
|
||||
OUTPUT_NAME "glew"
|
||||
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_link_libraries(libglew_shared ${LIBRARIES})
|
||||
set_target_properties(libglew_shared PROPERTIES VERSION ${GLEW_VERSION})
|
||||
|
Loading…
Reference in New Issue
Block a user