<div dir="ltr">On Tue, Sep 9, 2008 at 12:50 PM, Robert Kubrick <span dir="ltr">&lt;<a href="mailto:robertkubrick@gmail.com">robertkubrick@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I did not use an out of source build, so that of course would simplify things, but I still think that a command like:<br>
<br>
cmake erase<br>
<br>
Would be convenient to clear all cmake generated files and roll-back to the scenario *before* &#39;cmake .&#39; Yes, I can remove files manually but the user is not supposed to know exactly which files cmake generates. Different versions might change generated files or add hidden files.</blockquote>
<div><br>There is a feature request for this (basically equivalent to &quot;make distclean&quot;).&nbsp; It comes up on the mailing list quite frequently.&nbsp; Bill has indicated that if a patch were submitted for this feature it would be considered (presumably with regression tests included).<br>
<br><a href="http://public.kitware.com/Bug/view.php?id=6647">http://public.kitware.com/Bug/view.php?id=6647</a><br><br>As others have pointed out it is likely that there may be a few use cases that CMake would be unable to &quot;clean&quot;.&nbsp; One example would be a user running a custom script that generates files that CMake doesn&#39;t know about.&nbsp; These are likely to be few and far between, but when they do arise can easily be handled by the user with ADDITIONAL_MAKE_CLEAN_FILES.<br>
<br></div></div>-- <br>Philip Lowman<br>
</div>