summaryrefslogtreecommitdiff
path: root/externals/find-modules
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2022-12-01 00:49:58 -0500
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2022-12-01 00:49:58 -0500
commit5ff19890e9d2a07d1c0246f3807cdefcb36aca7d (patch)
treea2b9a1a13deb277c2847e069dd6e56d81b747df2 /externals/find-modules
parent2d2be2facf19a5c5944faad9297e9a031b4f78c7 (diff)
CMake: Fix FFmpeg find module
Uses find_package_handle_standard_args to handle the find_package call from the root CMakeLists. Removes all the unnecessary logic after the find_package and just sets it to REQUIRED.
Diffstat (limited to 'externals/find-modules')
-rw-r--r--externals/find-modules/FindFFmpeg.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/externals/find-modules/FindFFmpeg.cmake b/externals/find-modules/FindFFmpeg.cmake
index add5b2c01..eedf28aea 100644
--- a/externals/find-modules/FindFFmpeg.cmake
+++ b/externals/find-modules/FindFFmpeg.cmake
@@ -185,3 +185,11 @@ foreach(c ${_FFmpeg_ALL_COMPONENTS})
endforeach()
unset(_FFmpeg_ALL_COMPONENTS)
unset(_FFmpeg_REQUIRED_VARS)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(FFmpeg
+ REQUIRED_VARS
+ FFmpeg_LIBRARIES
+ FFmpeg_INCLUDE_DIR
+ HANDLE_COMPONENTS
+)