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:
parent
abd98331ab
commit
dd785d71c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user