From dd811541b5b723f5b8b3cf2d8c7e1a9808eadbd9 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 7 Mar 2021 10:09:29 +0100 Subject: [PATCH] macos: properly set GL_SILENCE_DEPRECATION when building gtkglext --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92734d5e..cfef0a02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ) -- 2.39.2