File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ endmacro()
36
36
# then looking up the libraries and include directories.
37
37
# @todo: WIN and MAC OSX.
38
38
#
39
- macro (find_component COMPONENT PKGCONFIG PKGOPTION LIBRARY HEADER )
39
+ macro (find_component COMPONENT PKGCONFIG LIBRARY HEADER )
40
40
if (NOT WIN32 )
41
41
# use pkg-config to get the directories and then use these values
42
42
# in the FIND_PATH() and FIND_LIBRARY() calls
43
43
find_package (PkgConfig )
44
44
if (PKG_CONFIG_FOUND )
45
- pkg_check_modules (PC_${COMPONENT} ${PKGCONFIG} ${PKGOPTION} )
45
+ pkg_check_modules (PC_${COMPONENT} ${PKGCONFIG} )
46
46
endif ()
47
47
endif ()
48
48
@@ -93,15 +93,15 @@ else()
93
93
foreach (COMPONENT ${FFmpeg_FIND_COMPONENTS} )
94
94
# Get component name is lower cases.
95
95
string (TOLOWER ${COMPONENT} LOWERCOMPONENT )
96
- find_component (${COMPONENT} lib${LOWERCOMPONENT} REQUIRED ${LOWERCOMPONENT} lib${LOWERCOMPONENT}/${LOWERCOMPONENT}.h )
96
+ find_component (${COMPONENT} lib${LOWERCOMPONENT} ${LOWERCOMPONENT} lib${LOWERCOMPONENT}/${LOWERCOMPONENT}.h )
97
97
# If the component is found.
98
98
if (${COMPONENT} _FOUND )
99
99
message (STATUS "Required component ${COMPONENT} present." )
100
100
set (FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${${COMPONENT}_LIBRARIES} )
101
101
set (FFMPEG_DEFINITIONS ${FFMPEG_DEFINITIONS} ${${COMPONENT}_DEFINITIONS} )
102
102
list (APPEND FFMPEG_INCLUDE_DIR ${${COMPONENT}_INCLUDE_DIR} )
103
103
else ()
104
- message (SEND_ERROR "Required component ${COMPONENT} missing." )
104
+ message (STATUS "Required component ${COMPONENT} missing." )
105
105
endif ()
106
106
endforeach ()
107
107
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ include(AvTranscoderMacros)
4
4
5
5
##find_package(FFmpeg)
6
6
find_package (FFmpeg
7
- COMPONENTS REQUIRED avcodec avformat avutil swscale swresample )
7
+ COMPONENTS avcodec avformat avutil swscale swresample avresample )
8
8
9
9
# get FFmpeg / libav libraries from path
10
10
file (GLOB FFMPEG_LIBRARIES "${FFMPEG_LIBRARIES} /*.so" )
You can’t perform that action at this time.
0 commit comments