mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
CMake: Reset EXTRA_TOOL_SRC for each tool
Otherwise the extra sources are accumulated and leaked from previous to all further tools.
This commit is contained in:
parent
bb5f0f8894
commit
fc3ea43859
|
@ -2616,6 +2616,7 @@ if(TOOLS)
|
||||||
string(REGEX REPLACE "\\.cpp$" "" TOOL "${T}")
|
string(REGEX REPLACE "\\.cpp$" "" TOOL "${T}")
|
||||||
set(TOOL_DEPS ${DEPS})
|
set(TOOL_DEPS ${DEPS})
|
||||||
set(TOOL_LIBS ${LIBS})
|
set(TOOL_LIBS ${LIBS})
|
||||||
|
unset(EXTRA_TOOL_SRC)
|
||||||
if(TOOL MATCHES "^(dilate|map_convert_07|map_create_pixelart|map_optimize|map_extract|map_replace_image)$")
|
if(TOOL MATCHES "^(dilate|map_convert_07|map_create_pixelart|map_optimize|map_extract|map_replace_image)$")
|
||||||
list(APPEND TOOL_INCLUDE_DIRS ${PNG_INCLUDE_DIRS})
|
list(APPEND TOOL_INCLUDE_DIRS ${PNG_INCLUDE_DIRS})
|
||||||
list(APPEND TOOL_DEPS $<TARGET_OBJECTS:engine-gfx>)
|
list(APPEND TOOL_DEPS $<TARGET_OBJECTS:engine-gfx>)
|
||||||
|
|
Loading…
Reference in a new issue