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

Anka Kochanowska anka at bic.mni.mcgill.ca
Tue Mar 25 08:45:39 EDT 2008


There is an easy way to avoid the problem - build in a separate directory.
Separating sources is a very good practice.
Anka


Philip Lowman wrote:
> On Mon, Mar 24, 2008 at 4:51 AM, Ákos Maróy <darkeye at tyrell.hu 
> <mailto:darkeye at tyrell.hu>> wrote:
>
>     Hi,
>
>     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..
>
>
> I've filed a feature request for this (i.e. a "distclean" target for 
> CMake).  It keeps coming up on the mailing list so it probably would 
> make a nice addition to CMake.  I've needed it before too when 
> stubborn coworkers really want to keep using in-source build trees but 
> want to return their source trees to a pristine state.
>
> http://public.kitware.com/Bug/view.php?id=6647
>
> -- 
> Philip Lowman
> ------------------------------------------------------------------------
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list