Merge pull request #28 from hgs3/master

Define GLEW_BUILD only for libglew_shared and not consumer targets.
This commit is contained in:
Gyusun Yeom 2020-08-23 14:54:55 +09:00 committed by GitHub
commit e34677f42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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})