From 4f5d697e2b04bd5f0eba792879a33d60a383d7ae Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Wed, 5 May 2021 10:36:34 +0200 Subject: [PATCH] Do not fail when unable to detect the FFMPEG version, like windows. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3c17ddcfc..1041401074 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,16 +261,16 @@ if(FFmpeg_FOUND) set(FFVER_OK FALSE) endif() endif() + + if(NOT FFVER_OK AND NOT APPLE) # unable to detect on version on MacOS < 11.0 + message(FATAL_ERROR "FFmpeg version is too old, 3.2 is required" ) + endif() endif() if(NOT FFmpeg_FOUND) message(FATAL_ERROR "FFmpeg was not found" ) endif() -if(NOT FFVER_OK) - message(FATAL_ERROR "FFmpeg version is too old, 3.2 is required" ) -endif() - if(WIN32) message("Can not detect FFmpeg version, at least the 3.2 is required" ) endif()