1
0
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:
Andrey Filipenkov 2023-02-22 12:32:19 +03:00
parent 499f870679
commit b0c109d5f7
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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()