[CMake] make clean and external projects

David Cole david.cole at kitware.com
Thu Mar 24 09:12:31 EDT 2011


On Thu, Mar 24, 2011 at 9:05 AM, Tomasz Grobelny <
tomasz at grobelny.oswiecenia.net> wrote:

> Is it possible to configure cmake in such a way that "make clean" command
> executed in root directory of my project also cleans external projects?
> --
> Regards,
> Tomasz Grobelny
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

No. (Actually, it *might* be possible, but I wouldn't classify it as trivial
or easy, especially with any significant number of ExternalProject calls.
You'd have to add all the ExternalProject generated stamp files to the list
of extra clean files at the top level...)

But a very easy equivalent is simply blow away your whole build tree, re-run
cmake, and then make again.

Especially for a SuperBuild style project, wherein everything that you are
building is an ExternalProject, the top level configure with CMake is very
quick.


HTH,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110324/9fee6b95/attachment-0001.htm>


More information about the CMake mailing list