cmake: add missing FFmpeg dependency on windows

This commit is contained in:
Scott Mansell 2022-04-27 18:11:50 +12:00 committed by Admiral H. Curtiss
parent d2df9afda2
commit 54d89b955a
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

@ -502,6 +502,12 @@ if(ENCODE_FRAMEDUMPS)
endif() endif()
message(STATUS "libav/ffmpeg found, enabling AVI frame dumps") message(STATUS "libav/ffmpeg found, enabling AVI frame dumps")
add_definitions(-DHAVE_FFMPEG) add_definitions(-DHAVE_FFMPEG)
if(WIN32)
# Our prebuilt binaries depend on Bcrypt
set_property(TARGET FFmpeg::avutil APPEND PROPERTY
INTERFACE_LINK_LIBRARIES "Bcrypt.lib"
)
endif()
else() else()
message(STATUS "libav/ffmpeg not found, disabling AVI frame dumps") message(STATUS "libav/ffmpeg not found, disabling AVI frame dumps")
endif() endif()