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

index 92734d5eaa315368dff8bc905707e3ae7fae16a0..cfef0a021a2f9ff338c89a4d5fbf93ec8669405c 100644 (file)
@@ -368,6 +368,7 @@ if (BUILTIN_GTKGLEXT)
 
     if (APPLE)
         set(GTKGLEXT_GIT_TAG macos)
+        set(GTKGLEXT_CFLAGS "${GTKGLEXT_CFLAGS} -DGL_SILENCE_DEPRECATION=1")
     else ()
         set(GTKGLEXT_GIT_TAG fixes)
     endif ()
@@ -379,8 +380,7 @@ if (BUILTIN_GTKGLEXT)
         CONFIGURE_COMMAND export LDFLAGS=${GTKGLEXT_LDFLAGS}
         CONFIGURE_COMMAND && NOCONFIGURE=1 ./autogen.sh
         CONFIGURE_COMMAND && ./configure --prefix "${BUILTINS_INSTALL_DIR}" ${CONFIGURE_OPTIONS}
-        BUILD_COMMAND GL_SILENCE_DEPRECATION=1
-        BUILD_COMMAND && $(MAKE) CFLAGS=${GTKGLEXT_CFLAGS} LDFLAGS=${GTKGLEXT_LDFLAGS}
+        BUILD_COMMAND $(MAKE) CFLAGS=${GTKGLEXT_CFLAGS} LDFLAGS=${GTKGLEXT_LDFLAGS}
         INSTALL_COMMAND $(MAKE) install
     )