cmake: prefer system ffmpeg library (#451)

This commit is contained in:
Alexandre Bouvier 2024-08-16 15:56:47 +00:00 committed by GitHub
parent c1fb5d5bca
commit ad60ae1d40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 27 additions and 2 deletions

View file

@ -47,9 +47,10 @@ else()
endif()
endif()
if (NOT TARGET ffmpeg)
if (NOT TARGET FFmpeg::ffmpeg)
set(ARCHITECTURE "x86_64")
add_subdirectory(ffmpeg-core)
add_library(FFmpeg::ffmpeg ALIAS ffmpeg)
endif()
# Zlib-Ng