From 1c3a97f39c01a76cc6255ca064d39d2225637b0a Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 7 Mar 2021 06:14:50 +0100 Subject: [PATCH] macos: set GL_SILENCE_DEPRECATION when building radiant --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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 () -- 2.39.2