diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindGObject.cmake | 1 | ||||
-rw-r--r-- | cmake/FindGStreamer.cmake | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/cmake/FindGObject.cmake b/cmake/FindGObject.cmake index 0880665fd..dc207a2ca 100644 --- a/cmake/FindGObject.cmake +++ b/cmake/FindGObject.cmake @@ -15,6 +15,7 @@ include(CMakeFindDependencyMacro) find_dependency(GLIB2) +qt_internal_disable_find_package_global_promotion(GLIB2::GLIB2) if(NOT TARGET GObject::GObject) find_package(PkgConfig QUIET) diff --git a/cmake/FindGStreamer.cmake b/cmake/FindGStreamer.cmake index ef9edd485..0624c1a77 100644 --- a/cmake/FindGStreamer.cmake +++ b/cmake/FindGStreamer.cmake @@ -138,3 +138,14 @@ if(GStreamer_FOUND AND NOT TARGET GStreamer::GStreamer) GStreamer::Allocators ) endif() + +if(TARGET PkgConfig::PC_GSTREAMER_GL) + get_target_property(_qt_incs PkgConfig::PC_GSTREAMER_GL INTERFACE_INCLUDE_DIRECTORIES) + set(__qt_fixed_incs) + foreach(path IN LISTS _qt_incs) + if(IS_DIRECTORY "${path}") + list(APPEND __qt_fixed_incs "${path}") + endif() + endforeach() + set_property(TARGET PkgConfig::PC_GSTREAMER_GL PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${__qt_fixed_incs}") +endif() |