Mark GLEW_BUILD PRIVATE to not affect consumers using add_subdirectory.

This commit is contained in:
hgs3 2020-08-11 17:46:31 -05:00 committed by GitHub
parent a96e6f1c45
commit a8b341554f
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" 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})