From a8b341554f8a7c82e618dc8beacb156bd33fb4a4 Mon Sep 17 00:00:00 2001 From: hgs3 <82091+hgs3@users.noreply.github.com> Date: Tue, 11 Aug 2020 17:46:31 -0500 Subject: [PATCH] Mark GLEW_BUILD PRIVATE to not affect consumers using add_subdirectory. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e803c7..3488954 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})