From 9620c467404f15a01bb5271af02b2676c2aaf306 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 4 Jan 2024 11:38:53 +0400 Subject: [PATCH] More cleaning in force-reconfiguration. --- run_cmake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_cmake.py b/run_cmake.py index 97717d9..3826b4a 100644 --- a/run_cmake.py +++ b/run_cmake.py @@ -58,7 +58,8 @@ def run(project, arguments, buildType=''): elif 'force' in arguments: paths = os.listdir(basePath) for path in paths: - if path.lower().startswith('cmake'): + low = path.lower(); + if not low.startswith('debug') and not low.startswith('release'): full = basePath + '/' + path if os.path.isdir(full): shutil.rmtree(full, ignore_errors=False)