From 30fe4bd33b74604a5cab08721415bd7f3101669f Mon Sep 17 00:00:00 2001 From: Marco Antonio Jaguaribe Costa Date: Thu, 26 Jan 2023 20:13:30 -0300 Subject: [PATCH] better name for the app/lang dependent shared lib targets --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e3d74ae6..0f00af0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,23 +145,23 @@ foreach(lang IN LISTS LangTargets) # with the appropriate preprocessor definitions foreach(lib IN LISTS Ja2_Libs) # syntactic sugar to hopefully make this more readable - set(tgt ${Executable}_${lib}) + set(VeryBadLib ${Executable}_${lib}) set(isEditor $) set(isUb $) set(isUbEditor $) # static library for an app/lang combination, e.g. JA2_ENGLISH_SGP.lib - add_library(${tgt}) - target_sources(${tgt} PRIVATE ${${lib}Src}) + add_library(${VeryBadLib}) + target_sources(${VeryBadLib} PRIVATE ${${lib}Src}) - target_compile_definitions(${tgt} PUBLIC + target_compile_definitions(${VeryBadLib} PUBLIC $ $ $ ${debugFlags} ${lang} ) - target_link_libraries(${Executable} PUBLIC ${tgt}) + target_link_libraries(${Executable} PUBLIC ${VeryBadLib}) endforeach() # only SGP depends on these