]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
macos: ignore warnings about OpenGL being deprecated
authorThomas Debesse <dev@illwieckz.net>
Mon, 22 Feb 2021 18:49:53 +0000 (19:49 +0100)
committerThomas Debesse <dev@illwieckz.net>
Mon, 22 Feb 2021 18:53:10 +0000 (19:53 +0100)
hide those warnings on maCOS:

warning: 'glBegin' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)

CMakeLists.txt

index b01730e8fcd1690b2d081fefb019385719e6d542..32158ffcd4ba84dd8e4cd8b2cdb0b78adff4d246 100644 (file)
@@ -373,7 +373,8 @@ 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 $(MAKE) CFLAGS=${GTKGLEXT_CFLAGS} LDFLAGS=${GTKGLEXT_LDFLAGS}
+        BUILD_COMMAND GL_SILENCE_DEPRECATION=1
+        BUILD_COMMAND && $(MAKE) CFLAGS=${GTKGLEXT_CFLAGS} LDFLAGS=${GTKGLEXT_LDFLAGS}
         INSTALL_COMMAND $(MAKE) install
     )