[CMake] "make superclean" target? (i.e. clear *everything*)
Daniele E. Domenichelli
daniele.domenichelli at gmail.com
Thu Apr 4 11:00:39 EDT 2013
On 04/04/13 15:34, Eric Noulard wrote:
> CMake cannot currently do that and it does not seem wise
> to ask for that feature.
> You may search the mailing list for this discussion topic and you'll find
> many answers.
>
> The only [reasonable] option is to do out-of-source build,
> then you know for sure that you can throw away the build tree.
>
> Safely avoiding accidental in-source build is a feature request:
> http://public.kitware.com/Bug/view.php?id=6672
That would work even better for me...
> Another option which is unrelated to CMake in order to clean-up a source
> tree
> is to use a VCS which may be able to remove any non versioned file easily.
> (see e.g. git clean)
That works as well, but you need to pay really good attention if you
have some unversioned files in your source tree (for example because you
didn't commit them yet)
Cheers,
Daniele
More information about the CMake
mailing list