From e2304449b8917ac5f1961b67066477f4ef0179c6 Mon Sep 17 00:00:00 2001 From: Epifanov Ivan Date: Tue, 11 Apr 2017 22:54:24 +0300 Subject: [PATCH] Fix cmake build Add libavdevice dependency, in consistency with autotools This fixes #342 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a8117bb9..7b201105 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,7 +81,7 @@ include_directories(${JPEG_INCLUDE_DIR}) list(APPEND LINK_LIBRARIES ${CMAKE_THREAD_LIBS_INIT} ${JPEG_LIBRARIES}) if(WITH_FFMPEG) - pkg_check_modules(FFMPEG REQUIRED libavutil libavformat libavcodec libswscale) + pkg_check_modules(FFMPEG REQUIRED libavutil libavformat libavcodec libswscale libavdevice) include_directories(${FFMPEG_INCLUDE_DIRS}) link_directories(${FFMPEG_LIBRARY_DIRS}) list(APPEND LINK_LIBRARIES ${FFMPEG_LIBRARIES})