From 18bc1e8042a63ccbbef102b9639ec4cc81152fac Mon Sep 17 00:00:00 2001 From: Be Date: Tue, 16 Feb 2021 15:02:41 -0600 Subject: CMake: disable FFMPEG automatically if it is too old --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 84edfaf36b..3b606c19d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2240,7 +2240,7 @@ endif() # FFmpeg 4.x support # FFmpeg is multimedia library that can be found http://ffmpeg.org/ find_package(FFMPEG COMPONENTS libavcodec libavformat libavutil libswresample) -cmake_dependent_option(FFMPEG "FFmpeg 4.x support" ON "FFMPEG_FOUND" OFF) +cmake_dependent_option(FFMPEG "FFmpeg 4.x support" ON "FFMPEG_FOUND;FFMPEG_libavcodec_VERSION VERSION_GREATER_EQUAL 58" OFF) if(FFMPEG) if(NOT FFMPEG_libavcodec_FOUND) message(FATAL_ERROR "FFmpeg support requires libavcodec and its development headers.") -- cgit v1.2.3