On Thu, Mar 24, 2011 at 9:05 AM, Tomasz Grobelny <span dir="ltr"><<a href="mailto:tomasz@grobelny.oswiecenia.net">tomasz@grobelny.oswiecenia.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Is it possible to configure cmake in such a way that "make clean" command<br>
executed in root directory of my project also cleans external projects?<br>
--<br>
Regards,<br>
Tomasz Grobelny<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>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...)<br>
<br>
But a very easy equivalent is simply blow away your whole build tree, re-run cmake, and then make again.<br><br>
Especially for a SuperBuild style project, wherein everything that you
are building is an ExternalProject, the top level configure with CMake
is very quick.<br><br><br>HTH,<br>David<br><br>