From e33f39a49af96684673befc2c5bb43d3722cc77c Mon Sep 17 00:00:00 2001 From: Lucian Popescu Date: Fri, 10 Jul 2026 11:41:30 +0100 Subject: [PATCH] Delete rust target dirs in ninja clean --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 893bf808..1ca4b960 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,3 +188,12 @@ add_custom_command( add_custom_target("preprocess-rust-rules" ALL DEPENDS ${rust_rules_ir_outputs}) + +set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_CLEAN_FILES + "${PROJECT_SOURCE_DIR}/libcc2rs/target" + "${PROJECT_SOURCE_DIR}/libcc2rs-macros/target" + "${PROJECT_SOURCE_DIR}/libc-dep/target" + "${PROJECT_SOURCE_DIR}/rules/target" + "${PROJECT_SOURCE_DIR}/rule-preprocessor/target" + "${CMAKE_BINARY_DIR}/target_preprocessor" +)