Moved FFmpeg components aboce externals to fix compilation issues

This commit is contained in:
Jarrod Norwell 2024-05-31 15:04:37 +08:00
parent 5ee0744893
commit 4d365c0681
1 changed files with 7 additions and 7 deletions

View File

@ -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)