From 4d365c0681b8c8ede8b703df5754f849e932fbd6 Mon Sep 17 00:00:00 2001 From: Jarrod Norwell Date: Fri, 31 May 2024 15:04:37 +0800 Subject: [PATCH] Moved FFmpeg components aboce externals to fix compilation issues --- CMakeLists.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 15e05c2..f4dedb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -291,6 +291,13 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) # System imported libraries # ======================================================================= +# List of all FFmpeg components required +set(FFmpeg_COMPONENTS + avcodec + avfilter + avutil + swscale) + add_subdirectory(externals) # Enforce the search mode of non-required packages for better and shorter failure messages @@ -556,13 +563,6 @@ if (ENABLE_SDL2) endif() endif() -# List of all FFmpeg components required -set(FFmpeg_COMPONENTS - avcodec - avfilter - avutil - swscale) - if (UNIX AND NOT APPLE AND NOT ANDROID) find_package(PkgConfig REQUIRED) pkg_check_modules(LIBVA libva)