[Bug 747247] New: Fix QtGStreamer lookup on Qt5

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Apr 2 07:39:58 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=747247

            Bug ID: 747247
           Summary: Fix QtGStreamer lookup on Qt5
    Classification: Platform
           Product: GStreamer
           Version: unspecified
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: qt-gstreamer
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: aleixpol at kde.org
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

No need to look-up the file, it will be in the current directory. If there's a
different version it will have the same set of files.
Also it includes the targets file, so that we can link against the exported
targets as "Qt5GStreamer".


diff --git a/cmake/modules/QtGStreamerConfig.cmake.in
b/cmake/modules/QtGStreamerConfig.cmake.in
index 4b1f609..123ec01 100644
--- a/cmake/modules/QtGStreamerConfig.cmake.in
+++ b/cmake/modules/QtGStreamerConfig.cmake.in
@@ -68,10 +68,9 @@ endif()
 unset(_QTGSTREAMER_FIND_DEPS_ARGS)

 # include QtGStreamerConfigCommon.cmake from the same directory
-find_file(_QTGSTREAMER_CONFIG_COMMON_FILE QtGStreamerConfigCommon.cmake
-          PATHS ${_QTGSTREAMER_CONFIG_DIR} NO_DEFAULT_PATH)
-include(${_QTGSTREAMER_CONFIG_COMMON_FILE})
-unset(_QTGSTREAMER_CONFIG_COMMON_FILE)
+include("${CMAKE_CURRENT_LIST_DIR}/QtGStreamerConfigCommon.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/@QTGSTREAMER_PACKAGE_NAME at Targets.cmake")

 # compatibility variable
 set(QTGSTREAMER_FOUND ${@QTGSTREAMER_PACKAGE_NAME at _FOUND})

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list