From 6d24aa4bb9fbff32bb6fb5ff019eb0ddded91c55 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Mon, 22 Feb 2021 19:49:53 +0100 Subject: [PATCH] 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) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- 2.39.2