mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-09-02 03:43:38 +00:00
cmake: add FFmpeg components as argument to find_package
(cherry picked from commit a0db66a718)
This commit is contained in:
@@ -286,8 +286,7 @@ files2headers(gamepad_image_headers
|
||||
files2headers(icon_png_header icon.png)
|
||||
files2headers(glass_png_header glass.png)
|
||||
|
||||
set(FFmpeg_FIND_COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE)
|
||||
find_package(FFmpeg)
|
||||
find_package(FFmpeg COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE)
|
||||
if(FFmpeg_FOUND)
|
||||
cmake_push_check_state()
|
||||
list(APPEND CMAKE_REQUIRED_INCLUDES "${FFmpeg_AVUTIL_INCLUDE_DIRS}")
|
||||
|
||||
Reference in New Issue
Block a user