blob: a21b9d2bf56fcf5aa71febaeae1f5914b248d160 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- CMakeModules/FindGStreamer.cmake.orig 2022-12-01 18:17:31 UTC
+++ CMakeModules/FindGStreamer.cmake
@@ -83,18 +83,18 @@ else ()
find_package(PkgConfig)
macro(FIND_GSTREAMER_COMPONENT _component_prefix _pkgconfig_name _header _library)
- pkg_check_modules(${_component_prefix} QUIET ${_pkgconfig_name})
+ pkg_check_modules(PC_${_component_prefix} QUIET ${_pkgconfig_name})
-# find_path(${_component_prefix}_INCLUDE_DIRS
-# NAMES ${_header}
-# HINTS ${PC_${_component_prefix}_INCLUDE_DIRS} ${PC_${_component_prefix}_INCLUDEDIR}
-# PATH_SUFFIXES gstreamer-1.0
-# )
+ find_path(${_component_prefix}_INCLUDE_DIRS
+ NAMES ${_header}
+ HINTS ${PC_${_component_prefix}_INCLUDE_DIRS} ${PC_${_component_prefix}_INCLUDEDIR}
+ PATH_SUFFIXES gstreamer-1.0
+ )
-# find_library(${_component_prefix}_LIBRARIES
-# NAMES ${_library}
-# HINTS ${PC_${_component_prefix}_LIBRARY_DIRS} ${PC_${_component_prefix}_LIBDIR}
-# )
+ find_library(${_component_prefix}_LIBRARIES
+ NAMES ${_library}
+ HINTS ${PC_${_component_prefix}_LIBRARY_DIRS} ${PC_${_component_prefix}_LIBDIR}
+ )
endmacro()
endif ()
|