Hopefully address the issue with REQUIRED_VARS for FindFFMPEG.cmake in cmake earlier than 3.18

Properly addresses issue #121 (and hopefully discussion #140)

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2023-01-31 22:16:08 +01:00
parent 9cddb56f60
commit 8211a7010b

View File

@ -24,6 +24,7 @@ include(FindPackageHandleStandardArgs)
FOUND_VAR FFMPEG_FOUND FOUND_VAR FFMPEG_FOUND
VERSION_VAR FFMPEG_VERSION VERSION_VAR FFMPEG_VERSION
HANDLE_COMPONENTS HANDLE_COMPONENTS
REQUIRED_VARS
) )
if(FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR) if(FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR)