1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-10 00:43:59 +02:00

Fix linker error in EntryPoint if ffmpeg is missing due to missing DISABLE_VIDEO in vcmiclient target

This commit is contained in:
Joakim Thorén 2024-11-15 00:49:22 +01:00
parent 7be44278d7
commit 9611a324cd

View File

@ -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