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: http://git.xonotic.org/?a=commitdiff_plain;h=1c3a97f39c01a76cc6255ca064d39d2225637b0a;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 ()