From 4f64d13fc0b8d1d3232338ded7c82c222be5a809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Brammer?= Date: Tue, 29 Dec 2015 01:48:24 +0100 Subject: [PATCH] CMake: Remove broken addition of GLEW_DEFINITIONS to openclonk This only didn't break earlier because this code was located before find_package(GLEW). The add_definitions(${GLEW_DEFINITIONS}) call that actually adds the macro is a bit broad, but the macro doesn't harm the targets that do not use GLEW. --- CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 39aea5853..bf9ebb21a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1148,9 +1148,6 @@ endif() if(USE_COCOA) target_link_libraries(openclonk "-framework Cocoa -framework AppKit -framework Quartz -framework OpenAL -framework AudioToolbox") endif() -if (GLEW_FOUND) - set_property(TARGET openclonk APPEND PROPERTY COMPILE_DEFINITIONS ${GLEW_DEFINITIONS}) -endif() add_executable(openclonk-server ${OC_SYSTEM_SOURCES}