[CMake] an easy way to clean cmake generated files?

Andreas Pakulat apaku at gmx.de
Mon Mar 24 05:11:09 EDT 2008


On 24.03.08 09:51:27, Ákos Maróy wrote:
> I wonder if there's an easy, straightforward way to clean a cmake  
> project of _all_ cmake-generated files? This would include:
>
> CMakeCache.txt
> cmake_install.cmake
> CMakeFiles
>
> and all of these in subdirectories added to the project with the  
> add_subdirectory() statement..

Use out-of-source builds, then you can just rm -rf builddir and be done.
For in-source-builds this is going to be manual work.

Andreas

-- 
You may get an opportunity for advancement today.  Watch it!


More information about the CMake mailing list