]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
cmake: pass C compiler option to gtkglext build tools
authorThomas Debesse <dev@illwieckz.net>
Thu, 11 Mar 2021 06:06:52 +0000 (07:06 +0100)
committerThomas Debesse <dev@illwieckz.net>
Thu, 11 Mar 2021 08:54:19 +0000 (09:54 +0100)
CMakeLists.txt

index 30ec6ce41b07d697aaa9c8e7262479bb04215c0e..d3f8b284d15e190e1904864526a65a1397eb3801 100644 (file)
@@ -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