1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix linking when using static libraries without client

This commit is contained in:
Ivan Savenko 2024-03-27 17:24:18 +02:00
parent abd98331ab
commit dd785d71c9

View File

@ -688,7 +688,7 @@ target_link_libraries(vcmi PUBLIC
${SYSTEM_LIBS} Boost::boost Boost::thread Boost::filesystem Boost::program_options Boost::locale Boost::date_time
)
if(ENABLE_STATIC_LIBS)
if(ENABLE_STATIC_LIBS AND ENABLE_CLIENT)
target_compile_definitions(vcmi PRIVATE STATIC_AI)
target_link_libraries(vcmi PRIVATE
BattleAI