Skip to content

Commit a127ede

Browse files
author
Clement Champetier
committed
Travis: fix build
1 parent 0d545aa commit a127ede

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cmake/FindFFmpeg.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ macro(find_component COMPONENT PKGCONFIG LIBRARY HEADER)
7676
endmacro()
7777

7878
# Get FFmpeg from custom install
79-
if(FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR)
79+
if(FFMPEG_LIBRARY_DIR AND FFMPEG_INCLUDE_DIR)
8080
set(FFMPEG_FOUND TRUE)
81+
file(GLOB FFMPEG_LIBRARIES "${FFMPEG_LIBRARY_DIR}/*.so")
8182
# Get FFmpeg from system install
8283
else()
8384
# Check FFmpeg version

src/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ include(AvTranscoderMacros)
66
find_package(FFmpeg
77
COMPONENTS avcodec avformat avutil swscale swresample avresample)
88

9-
# get FFmpeg / libav libraries from path
10-
file(GLOB FFMPEG_LIBRARIES "${FFMPEG_LIBRARIES}/*.so")
11-
129
# Check if FFmpeg or libav dependency
1310
if(EXISTS "${FFMPEG_INCLUDE_DIR}/libavresample/avresample.h")
1411
add_definitions(-DAV_RESAMPLE_LIBRARY=1)

0 commit comments

Comments
 (0)