From 9611a324cd47e533f4511e2f5722b1854399f6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Thor=C3=A9n?= Date: Fri, 15 Nov 2024 00:49:22 +0100 Subject: [PATCH] Fix linker error in EntryPoint if ffmpeg is missing due to missing DISABLE_VIDEO in vcmiclient target --- clientapp/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clientapp/CMakeLists.txt b/clientapp/CMakeLists.txt index edb0cb873..40061748d 100644 --- a/clientapp/CMakeLists.txt +++ b/clientapp/CMakeLists.txt @@ -56,6 +56,11 @@ if(WIN32) endif() target_compile_definitions(vcmiclient PRIVATE WINDOWS_IGNORE_PACKING_MISMATCH) + if(NOT ffmpeg_LIBRARIES) + target_compile_definitions(vcmiclient PRIVATE DISABLE_VIDEO) + endif() + + # TODO: very hacky, find proper solution to copy AI dlls into bin dir if(MSVC) add_custom_command(TARGET vcmiclient POST_BUILD