mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Don't overwrite TOOLS variable in CMakeLists.txt
This commit is contained in:
parent
810787a905
commit
c70e84a865
|
@ -2197,7 +2197,7 @@ if(TOOLS)
|
||||||
list(APPEND TARGETS_LINK ${TARGET_MASTERSRV} ${TARGET_TWPING})
|
list(APPEND TARGETS_LINK ${TARGET_MASTERSRV} ${TARGET_TWPING})
|
||||||
|
|
||||||
set(TARGETS_TOOLS)
|
set(TARGETS_TOOLS)
|
||||||
set_src(TOOLS GLOB src/tools
|
set_src(TOOLS_SRC GLOB src/tools
|
||||||
config_common.h
|
config_common.h
|
||||||
config_retrieve.cpp
|
config_retrieve.cpp
|
||||||
config_store.cpp
|
config_store.cpp
|
||||||
|
@ -2215,7 +2215,7 @@ if(TOOLS)
|
||||||
unicode_confusables.cpp
|
unicode_confusables.cpp
|
||||||
uuid.cpp
|
uuid.cpp
|
||||||
)
|
)
|
||||||
foreach(ABS_T ${TOOLS})
|
foreach(ABS_T ${TOOLS_SRC})
|
||||||
file(RELATIVE_PATH T "${PROJECT_SOURCE_DIR}/src/tools/" ${ABS_T})
|
file(RELATIVE_PATH T "${PROJECT_SOURCE_DIR}/src/tools/" ${ABS_T})
|
||||||
if(T MATCHES "\\.cpp$")
|
if(T MATCHES "\\.cpp$")
|
||||||
string(REGEX REPLACE "\\.cpp$" "" TOOL "${T}")
|
string(REGEX REPLACE "\\.cpp$" "" TOOL "${T}")
|
||||||
|
|
Loading…
Reference in a new issue