cmake: save excluded tools to REMOVED_TOOLS variable
@@ -313,6 +313,21 @@ macro (remove_tool name reason)
CACHE STRING
${TOOLS_DOC}
FORCE)
+
+ # save removed tools for dependency resolving later on
+ if (REMOVED_TOOLS)
+ set (REMOVED_TOOLS
+ "${REMOVED_TOOLS};${name}"
+ CACHE STRING
+ "${REMOVED_TOOLS_DOC}"
+ FORCE)
+ else ()
+ set (REMOVED_TOOLS
+ "${name}"
+ CACHE STRING
+ "${REMOVED_TOOLS_DOC}"
+ FORCE)
+ endif ()
endmacro (remove_tool)
# ~~~
