citra-emu
/
citra-canary
Archived
1
0
Fork 0

CMakeLists: Fix `find_package` call

Fixes #4959

Previously options for video dumper and audio decoder is separated, but I forgot to split this `find_package` call so that the other libraries won't be necessary when only using the audio decoder.
This commit is contained in:
zhupengfei 2019-10-03 09:35:08 +08:00
parent acf1fe5ee1
commit 977ccda30f
No known key found for this signature in database
GPG Key ID: DD129E108BD09378
1 changed files with 5 additions and 1 deletions

View File

@ -209,7 +209,11 @@ if (ENABLE_FFMPEG)
endif() endif()
endif() endif()
find_package(FFmpeg REQUIRED COMPONENTS avcodec avformat avutil swscale swresample) if (ENABLE_FFMPEG_VIDEO_DUMPER)
find_package(FFmpeg REQUIRED COMPONENTS avcodec avformat avutil swscale swresample)
else()
find_package(FFmpeg REQUIRED COMPONENTS avcodec)
endif()
if ("${FFmpeg_avcodec_VERSION}" VERSION_LESS "57.48.101") if ("${FFmpeg_avcodec_VERSION}" VERSION_LESS "57.48.101")
message(FATAL_ERROR "Found version for libavcodec is too low. The required version is at least 57.48.101 (included in FFmpeg 3.1 and later).") message(FATAL_ERROR "Found version for libavcodec is too low. The required version is at least 57.48.101 (included in FFmpeg 3.1 and later).")
endif() endif()