mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +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)
|
add_subdirectory(ios)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(VCMI_LIB_TARGET vcmi)
|
||||||
include(VCMI_lib)
|
include(VCMI_lib)
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
set(VCMI_LIB_TARGET vcmi)
|
|
||||||
if(ENABLE_SINGLE_APP_BUILD)
|
if(ENABLE_SINGLE_APP_BUILD)
|
||||||
add_subdirectory(lib_server)
|
add_subdirectory(lib_server)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
add_main_lib(vcmi SHARED)
|
add_main_lib(${VCMI_LIB_TARGET} SHARED)
|
||||||
if(ENABLE_SINGLE_APP_BUILD)
|
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()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user