]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - cmake/FindGLIB.cmake
fix include
[xonotic/netradiant.git] / cmake / FindGLIB.cmake
index 4b1b26504b27c0ee2beb6b1aea50f2a1619a22f2..cf12399e3f95c8d24043058a1bff32eb92e6e229 100644 (file)
@@ -1,5 +1,10 @@
 find_package(PkgConfig)
 if (PKG_CONFIG_FOUND)
+    if (APPLE)
+        # libffi is provided by base system so brew does not take the risk to override it
+        # hence then need for an explicit look-up
+        set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig")
+    endif ()
     if (GLIB_FIND_REQUIRED)
         set(_pkgconfig_REQUIRED REQUIRED)
     endif ()