[CMake] "make superclean" target? (i.e. clear *everything*)

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Thu Apr 4 09:01:35 EDT 2013


Hello,

On 04/04/13 11:40, Ansis Māliņš wrote:
>> Is it possible to ask CMake to make another "make clean" target
>> that clears *all* the CMake generated files including the cache? I
>> am a bit annoyed that the only way to clear everything is to
>> basically run "rm -rf *".
>
> What would be the benefit of such a command besides syntax?


I also find that such a command would be useful. It could be something
like the "make maintainer-clean" target generated by autotools.

One benefit is that it would allow to easily remove all cmake files when
you wrongly run cmake in the source directory instead of in the build one.




Cheers,
 Daniele


More information about the CMake mailing list