mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
Merge pull request #4909 from Kuxe/fix_linker_error_if_ffmpeg_is_missing
Fix linker error in EntryPoint if ffmpeg is missing due to missing DISABLE_VIDEO in vcmiclient target
This commit is contained in:
commit
e7c92c738a
@ -56,6 +56,11 @@ if(WIN32)
|
|||||||
endif()
|
endif()
|
||||||
target_compile_definitions(vcmiclient PRIVATE WINDOWS_IGNORE_PACKING_MISMATCH)
|
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
|
# TODO: very hacky, find proper solution to copy AI dlls into bin dir
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_custom_command(TARGET vcmiclient POST_BUILD
|
add_custom_command(TARGET vcmiclient POST_BUILD
|
||||||
|
Loading…
Reference in New Issue
Block a user