mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
use target from variable
This commit is contained in:
parent
499f870679
commit
b0c109d5f7
@ -499,9 +499,9 @@ if(APPLE_IOS)
|
||||
add_subdirectory(ios)
|
||||
endif()
|
||||
|
||||
set(VCMI_LIB_TARGET vcmi)
|
||||
include(VCMI_lib)
|
||||
add_subdirectory(lib)
|
||||
set(VCMI_LIB_TARGET vcmi)
|
||||
if(ENABLE_SINGLE_APP_BUILD)
|
||||
add_subdirectory(lib_server)
|
||||
endif()
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_main_lib(vcmi SHARED)
|
||||
add_main_lib(${VCMI_LIB_TARGET} SHARED)
|
||||
if(ENABLE_SINGLE_APP_BUILD)
|
||||
target_compile_definitions(vcmi PUBLIC VCMI_LIB_NAMESPACE=LIB_CLIENT)
|
||||
target_compile_definitions(${VCMI_LIB_TARGET} PUBLIC VCMI_LIB_NAMESPACE=LIB_CLIENT)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user