add --define-prefex option to pkg-config on macOS (needed by new GStreamer builds)

This commit is contained in:
fduncanh
2022-05-11 02:48:38 -04:00
parent 0083108071
commit 3083e33dd3

View File

@@ -6,6 +6,7 @@ if (APPLE )
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/opt/local/lib/pkgconfig/" ) # MacPorts
message( "PKG_CONFIG_PATH (Apple, renderers) = " $ENV{PKG_CONFIG_PATH} )
find_program( PKG_CONFIG_EXECUTABLE pkg-config PATHS /Library/FrameWorks/GStreamer.framework/Commands )
set(PKG_CONFIG_EXECUTABLE ${PKG_CONFIG_EXECUTABLE} --define-prefix )
endif()
find_package( PkgConfig REQUIRED )