From: Thomas Debesse Date: Thu, 11 Mar 2021 06:06:52 +0000 (+0100) Subject: cmake: pass C compiler option to gtkglext build tools X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1c9cf4434f0d6352924b871438112799a9850ef;p=xonotic%2Fnetradiant.git cmake: pass C compiler option to gtkglext build tools --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 30ec6ce4..d3f8b284 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -394,12 +394,14 @@ if (BUILTIN_GTKGLEXT) GIT_REPOSITORY https://gitlab.gnome.org/illwieckz/gtkglext.git GIT_TAG ${GTKGLEXT_GIT_TAG} BUILD_IN_SOURCE ON - CONFIGURE_COMMAND export CFLAGS=${GTKGLEXT_LDFLAGS} + CONFIGURE_COMMAND export CC=${CMAKE_C_COMPILER} + CONFIGURE_COMMAND && export CFLAGS=${GTKGLEXT_LDFLAGS} CONFIGURE_COMMAND && export LDFLAGS=${GTKGLEXT_CFLAGS} CONFIGURE_COMMAND && export NOCONFIGURE=1 CONFIGURE_COMMAND && ./autogen.sh CONFIGURE_COMMAND && ./configure --prefix "${BUILTINS_INSTALL_DIR}" ${CONFIGURE_OPTIONS} BUILD_COMMAND $(MAKE) + BUILD_COMMAND CC=${CMAKE_C_COMPILER} BUILD_COMMAND CFLAGS=${GTKGLEXT_CFLAGS} BUILD_COMMAND LDFLAGS=${GTKGLEXT_LDFLAGS} INSTALL_COMMAND $(MAKE) install