From: Thomas Debesse Date: Mon, 22 Feb 2021 18:49:53 +0000 (+0100) Subject: macos: ignore warnings about OpenGL being deprecated X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d24aa4bb9fbff32bb6fb5ff019eb0ddded91c55;p=xonotic%2Fnetradiant.git macos: ignore warnings about OpenGL being deprecated 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) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b01730e8..32158ffc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )