File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,9 @@ macro(find_component COMPONENT PKGCONFIG LIBRARY HEADER)
76
76
endmacro ()
77
77
78
78
# Get FFmpeg from custom install
79
- if (FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR )
79
+ if (FFMPEG_LIBRARY_DIR AND FFMPEG_INCLUDE_DIR )
80
80
set (FFMPEG_FOUND TRUE )
81
+ file (GLOB FFMPEG_LIBRARIES "${FFMPEG_LIBRARY_DIR} /*.so" )
81
82
# Get FFmpeg from system install
82
83
else ()
83
84
# Check FFmpeg version
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ include(AvTranscoderMacros)
6
6
find_package (FFmpeg
7
7
COMPONENTS avcodec avformat avutil swscale swresample avresample )
8
8
9
- # get FFmpeg / libav libraries from path
10
- file (GLOB FFMPEG_LIBRARIES "${FFMPEG_LIBRARIES} /*.so" )
11
-
12
9
# Check if FFmpeg or libav dependency
13
10
if (EXISTS "${FFMPEG_INCLUDE_DIR} /libavresample/avresample.h" )
14
11
add_definitions (-DAV_RESAMPLE_LIBRARY=1 )
You can’t perform that action at this time.
0 commit comments