From: Thomas Debesse Date: Sun, 7 Mar 2021 05:14:50 +0000 (+0100) Subject: macos: set GL_SILENCE_DEPRECATION when building radiant X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=1c3a97f39c01a76cc6255ca064d39d2225637b0a;hp=e02cfdd9b86511fcb2081484c1e58d47a0298a3b;p=xonotic%2Fnetradiant.git macos: set GL_SILENCE_DEPRECATION when building radiant --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b0f1d013..92734d5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,6 +229,10 @@ if (BUILD_BINARIES) addflags("-Wno-unused-variable") addflags("-Wno-unused-parameter") + if (APPLE) + add_definitions(-DGL_SILENCE_DEPRECATION=1) + endif() + set(CMAKE_POSITION_INDEPENDENT_CODE 1) endif ()