Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Update
gstreamer-plugins-qt5
fix_gstconfig_detection.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_gstconfig_detection.diff of Package gstreamer-plugins-qt5
diff --git a/cmake/modules/FindGStreamer.cmake b/cmake/modules/FindGStreamer.cmake index dab91ac..22e5b20 100644 --- a/cmake/modules/FindGStreamer.cmake +++ b/cmake/modules/FindGStreamer.cmake @@ -47,6 +47,22 @@ find_path(GSTREAMER_INCLUDE_DIR HINTS ${PKG_GSTREAMER_INCLUDE_DIRS} ${PKG_GSTREAMER_INCLUDEDIR} PATH_SUFFIXES gstreamer-${GSTREAMER_ABI_VERSION}) +# Newer versions of GStreamer put gstconfig.h under $lib/gstreamer-${GSTREAMER_ABI_VERSION}/include +find_path(GSTREAMER_CONF_INCLUDE_DIR gst/gstconfig.h + PATHS + ${PKG_GSTREAMER_INCLUDE_DIRS} + PATH_SUFFIXES gstreamer-${GSTREAMER_ABI_VERSION}) + +if(NOT GSTREAMER_CONF_INCLUDE_DIR) + message(STATUS "GStreamer: WARNING: gstconfig.h not found") +endif() + +if(GSTREAMER_INCLUDE_DIR AND GSTREAMER_CONF_INCLUDE_DIR) + if(NOT GSTREAMER_CONF_INCLUDE_DIR STREQUAL GSTREAMER_INCLUDE_DIR) + LIST(APPEND GSTREAMER_INCLUDE_DIR "${GSTREAMER_CONF_INCLUDE_DIR}") + endif() +endif() + if (PKG_GSTREAMER_PLUGIN_DIR) set(_GSTREAMER_PLUGIN_DIR ${PKG_GSTREAMER_PLUGIN_DIR}) else()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor