diff --git a/indra/cmake/GStreamer10Plugin.cmake b/indra/cmake/GStreamer10Plugin.cmake index cb83d09d8a..875ebfc194 100644 --- a/indra/cmake/GStreamer10Plugin.cmake +++ b/indra/cmake/GStreamer10Plugin.cmake @@ -1,5 +1,6 @@ # -*- cmake -*- include(Prebuilt) +include(GLIB) # add glib includes if (NOT LINUX) return() endif() @@ -10,4 +11,12 @@ use_system_binary(gstreamer10) use_prebuilt_binary(gstreamer10) use_prebuilt_binary(libxml2) -target_include_directories( ll::gstreamer SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/gstreamer-1.0) +# make sure glib is found +set(_gstreamer10_include_dirs + ${LIBS_PREBUILT_DIR}/include/gstreamer-1.0 + ${GLIB_INCLUDE_DIRS} +) +list(REMOVE_ITEM _gstreamer10_include_dirs "") +# + +target_include_directories( ll::gstreamer SYSTEM INTERFACE ${_gstreamer10_include_dirs})