Skip to content

Commit 97598b6

Browse files
robin-muellerStefanFabian
authored andcommitted
Add cmake-clean-cache argument
1 parent 43cf946 commit 97598b6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

scripts/build.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
parser.add_argument(
5353
"--clean", default=False, action="store_true", help="Clean before building."
5454
)
55+
parser.add_argument(
56+
"--cmake-clean-cache",
57+
default=False,
58+
action="store_true",
59+
help="Clean CMake cache before building.",
60+
)
5561
parser.add_argument(
5662
"--verbose",
5763
"-v",
@@ -100,6 +106,7 @@
100106
continue_on_error=args.continue_on_error,
101107
build_tests=args.build_tests,
102108
verbose=args.verbose,
109+
cmake_clean_cache=args.cmake_clean_cache,
103110
)
104111
)
105112
except KeyboardInterrupt:

tuda_workspace_scripts/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def build_packages(
2828
verbose: bool = False,
2929
build_base: str = "build",
3030
install_base: str = "install",
31+
cmake_clean_cache: bool = False,
3132
) -> int:
3233
os.chdir(workspace_root)
3334
packages = packages or []
@@ -40,6 +41,8 @@ def build_packages(
4041
arguments += ["--allow-overriding"] + packages
4142
if continue_on_error:
4243
arguments += ["--continue-on-error"]
44+
if cmake_clean_cache:
45+
arguments += ["--cmake-clean-cache"]
4346

4447
cmake_arguments = []
4548
if build_type is not None:

0 commit comments

Comments
 (0)