From 54d89b955acea8080924c7f59fbd8310896b283e Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Wed, 27 Apr 2022 18:11:50 +1200 Subject: [PATCH] cmake: add missing FFmpeg dependency on windows --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0bc248e00..337877cb38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -502,6 +502,12 @@ if(ENCODE_FRAMEDUMPS) endif() message(STATUS "libav/ffmpeg found, enabling AVI frame dumps") 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() message(STATUS "libav/ffmpeg not found, disabling AVI frame dumps") endif()