Merge pull request #19500 from brad0/cmake_fix

Minor CMake fix
This commit is contained in:
Henrik Rydgård 2024-09-29 12:09:11 +02:00 committed by GitHub
commit a9ef8a1f25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -988,7 +988,7 @@ if(USE_FFMPEG)
find_package(FFmpeg REQUIRED avcodec avformat avutil swresample swscale)
# Check if we need to use avcodec_(alloc|free)_frame instead of av_frame_(alloc|free)
# Check if we need to use const AVCodec
set(CMAKE_REQUIRED_INCLUDES ${FFmpeg_INCLUDE_avcodec} ${FFmpeg_INCLUDE_avformat})
set(CMAKE_REQUIRED_INCLUDES ${FFmpeg_INCLUDE_avcodec};${FFmpeg_INCLUDE_avformat})
set(CMAKE_REQUIRED_LIBRARIES FFmpeg::avcodec;FFmpeg::avformat)
set(CMAKE_REQUIRED_FLAGS "-pedantic -Wall -Werror -Wno-unused-variable")
check_cxx_source_compiles("extern \"C\" {