Crates.io | cclean |
lib.rs | cclean |
version | 0.0.2 |
source | src |
created_at | 2023-04-16 19:32:33.108173 |
updated_at | 2023-04-16 23:09:15.223719 |
description | a cmake sanitizer |
homepage | https://github.com/mcandre/cclean |
repository | |
max_upload_size | |
id | 840814 |
size | 27,360 |
cclean cleans up cmake's messiest build artifacts.
$ cd example
$ cmake .
$ cmake --build . --target hello
$ tree
.
├── CMakeCache.txt
├── CMakeFiles
...
├── CMakeLists.txt
├── Makefile
├── bin
│ └── hello
├── cmake_install.cmake
└── hello.c
$ cclean
$ tree
.
├── CMakeLists.txt
└── hello.c
See cclean -h
for more options.
cclean assists cmake with removing common internal artifacts. This is helpful for freeing up disk space.
cmake often enters a corrupt state, requiring manual intervention. cclean automates the process of resetting cmake back to a clean state.
cclean is particularly helpful for cross-platform workflows. For example, when building the same host directory once in WSL, and then again in PowerShell.
.ninja_log
-B
build directoriesclean
targetconan
packagesLike cmake, cclean encourages portable build steps. This enables cmake projects to build more reliably on more environments.
Configure the cmake global clean
target (esp. ADDITIONAL_CLEAN_FILES
) carefully, in order to avoid accidents.
https://crates.io/crates/cclean
$ cargo install --force --path .
For more details on developing cclean itself, see DEVELOPMENT.md.
FreeBSD