cmake/gtkglext: do not override CC
authorThomas Debesse <dev@illwieckz.net>
Sat, 20 Mar 2021 14:19:50 +0000 (15:19 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 21 Mar 2021 18:55:09 +0000 (19:55 +0100)
This bring many issues we don't have man power for at this time.

CMakeLists.txt

index 7a04403144f9618dd01d9dcf408aff56403847d6..7d743f704b0b0592dfad6e23c5d932cddb748f3d 100644 (file)
@@ -395,14 +395,12 @@ if (BUILTIN_GTKGLEXT)
         GIT_REPOSITORY https://gitlab.gnome.org/illwieckz/gtkglext.git
         GIT_TAG ${GTKGLEXT_GIT_TAG}
         BUILD_IN_SOURCE ON
-        CONFIGURE_COMMAND export CC=${CMAKE_C_COMPILER}
-        CONFIGURE_COMMAND && export CFLAGS=${GTKGLEXT_LDFLAGS}
+        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