fixes to CMakeLists.txt for MacOS builds

This commit is contained in:
fduncanh
2021-09-21 04:37:25 -04:00
parent c476b90610
commit 26ec21f50e
3 changed files with 16 additions and 8 deletions

View File

@@ -17,6 +17,11 @@ pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4
gstreamer-app-1.0>=1.4
)
message( "GST_LIBRARIES" ${GST_LIBRARIES} )
# hack to fix cmake confusion due to links in path
if( GST_LIBRARY_DIRS MATCHES "/Library/FrameWorks/GStreamer.framework/lib" )
set( GST_LIBRARY_DIRS "/Library/FrameWorks/GStreamer.framework/Libraries")
endif()
message( "GST_LIBRARY_DIRS " ${GST_LIBRARY_DIRS} )
message( "GST_CFLAGS " ${GST_CFLAGS} )
message( "GST_LDFLAGS " ${GST_LDFLAGS} )