From fc3ea4385968e57075014933d5954298dd2d6de3 Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Wed, 15 Feb 2023 01:58:34 +0300 Subject: [PATCH] CMake: Reset EXTRA_TOOL_SRC for each tool Otherwise the extra sources are accumulated and leaked from previous to all further tools. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d85d451af..8c793474a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2616,6 +2616,7 @@ if(TOOLS) string(REGEX REPLACE "\\.cpp$" "" TOOL "${T}") set(TOOL_DEPS ${DEPS}) 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)$") list(APPEND TOOL_INCLUDE_DIRS ${PNG_INCLUDE_DIRS}) list(APPEND TOOL_DEPS $)