cclean cleans up cmake's messiest build artifacts.
```console $ 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.
cmake [-B] ..ninja_logclean target, such as cmake ADDITIONAL_CLEAN_FILES file pathsCMAKE_RUNTIME_OUTPUT_DIRECTORY and EXECUTABLE_OUTPUT_PATHhtml and latexmake, ninja, and MSVCctest artifactsconan artifacts, including packages installed via conantext
/!\ Use cclean at your own risk. /!\
cclean deletes files.
This is not a dry run.
Take appropriate precautions before running cclean, including:
Makefile, build.ninja, etc. to a substantially different filename. Minor casing variations such as makefile, Build.ninja, etc. are NOT substantially different.https://crates.io/crates/cclean
console
$ cargo install --force --path .
For more details on developing cclean itself, see DEVELOPMENT.md.
FreeBSD