]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - cmake/FindGTK2.cmake
Make it build on M1 Mac
[xonotic/netradiant.git] / cmake / FindGTK2.cmake
index ff205261d74b2301d43497622e9f9671f622f03c..6f21791d3eeaac20776b75ce8988880c2bf833af 100644 (file)
@@ -4,6 +4,9 @@ if (PKG_CONFIG_FOUND)
         set(_pkgconfig_REQUIRED REQUIRED)
     endif ()
     pkg_check_modules(GTK2 ${_pkgconfig_REQUIRED} gtk+-2.0)
+    if (GTK2_LINK_LIBRARIES)
+        set(GTK2_LIBRARIES ${GTK2_LINK_LIBRARIES}) # HACK
+    endif ()
 else ()
     find_path(GTK2_INCLUDE_DIRS gtk.h)
     # find_library(GTK2_LIBRARIES)