FFmpeg: tweak components we use

This commit is contained in:
James Turner
2021-12-12 19:48:54 +00:00
parent dd61ad8bd0
commit db5a2353bd
+2 -2
View File
@@ -226,12 +226,12 @@ endif(ENABLE_GDAL)
if (ENABLE_VIDEO_RECORD) if (ENABLE_VIDEO_RECORD)
find_package(FFmpeg) find_package(FFmpeg COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE)
if (FFmpeg_FOUND) if (FFmpeg_FOUND)
# set this so it's picked up in simgear_config.h # set this so it's picked up in simgear_config.h
set(SG_FFMPEG 1) set(SG_FFMPEG 1)
else() else()
message(STATUS "Video recording was requested, but required FFmpeg/avcoded libaries not found") message(STATUS "Video recording was requested, but required FFmpeg/avcodec libaries not found")
endif() endif()
endif() endif()