GNOME Bugzilla – Bug 747247
Fix QtGStreamer lookup on Qt5
Last modified: 2018-01-23 20:37:25 UTC
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@Targets.cmake") # compatibility variable set(QTGSTREAMER_FOUND ${@QTGSTREAMER_PACKAGE_NAME@_FOUND})
qt-gstreamer is unmaintained unfortunately, but I've pushed this to git master. commit 9740ed6ca478fcac8884f974dba7bc0f4e1d1898 (HEAD -> master) Author: Aleix Pol <aleixpol@kde.org> Date: Tue Jan 23 20:35:44 2018 +0000 Fix QtGStreamer lookup on Qt5 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". https://bugzilla.gnome.org/show_bug.cgi?id=747247