[CMake] Run clean before automatically re-running cmake?

Abe Bachrach abachrach at gmail.com
Wed Feb 12 12:26:10 EST 2014


On Wed, Feb 12, 2014 at 8:53 AM, Matthew Woehlke <
mw_triad at users.sourceforge.net> wrote:
>
> What you really want is to record the "old" list of output files, re-run
> CMake, then remove any files on that list that no longer have rules to
> generate them. If you do a complete 'clean' you will delete and have to
> rebuild more than is necessary (which might even be nothing e.g. if CMake
> is being re-run because you added a debugging message).
>


You are correct that I would prefer that behavior, however I'd prefer to go
for safety (and do a full clean) until that more advanced logic can be
implemented... I am in fact using ninja, so hopefully that feature may come
down the pipe soon :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140212/81a915ae/attachment.html>


More information about the CMake mailing list