macos: set GL_SILENCE_DEPRECATION when building radiant
authorThomas Debesse <dev@illwieckz.net>
Sun, 7 Mar 2021 05:14:50 +0000 (06:14 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 7 Mar 2021 09:13:02 +0000 (10:13 +0100)
CMakeLists.txt

index b0f1d013f5fd847de6e4b04f21e338bf1c5e5162..92734d5eaa315368dff8bc905707e3ae7fae16a0 100644 (file)
@@ -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 ()