<div dir="ltr"><div>Hi David, <br><br></div><div>I should have specify the context ... <br><br></div><div>..for example, in the case you change the SHA1 associated with your external project. If update is disabled, doing a full rebuild will take longer than simply doing an update + incremental build. Especially if other projects depend on the fully rebuild project.<br>
<br></div><div>With CMake 2.8.8 and lower, wihtin Slicer we had to disable the UPDATE command since it wasn't working reliably. By requiring CMake 2.8.9, things seems to work better on all platform. See [1], [2] and [3]<br>
</div><div><br></div><div>Thanks<br></div><div>Jc<br><br><br>[1] <a href="http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20615">http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20615</a><br>
<br>[2] <a href="http://cmake.org/gitweb?p=cmake.git;a=blobdiff;f=Modules/ExternalProject.cmake;h=1997572196997614f152bc7da886beffb85f01ab;hp=301d1fc4d50d850d5abe219eab3a230d55769910;hb=987c017f6b1b49ab832c244166e30e07260432da;hpb=8bb46ee787828c75b825d72b7121296d91bef7d6">http://cmake.org/gitweb?p=cmake.git;a=blobdiff;f=Modules/ExternalProject.cmake;h=1997572196997614f152bc7da886beffb85f01ab;hp=301d1fc4d50d850d5abe219eab3a230d55769910;hb=987c017f6b1b49ab832c244166e30e07260432da;hpb=8bb46ee787828c75b825d72b7121296d91bef7d6</a><br>
<br>[3] <a href="http://cmake.org/gitweb?p=cmake.git;a=commit;h=99f6055fe4f047">http://cmake.org/gitweb?p=cmake.git;a=commit;h=99f6055fe4f047</a><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 6:06 PM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Some background about the Slicer build system that inspired<br>
the NamicExternalProjects system discussed by Kent ... <br>
<br>
Before CMake 2.8.8, we disabled the UPDATE of external project<br>
because it was not working well with Visual Studio. While this was<br>
working as expected, the overall build time was also increased<br>
because it wasn't doing an incremental rebuild.<br>
</blockquote>
<br></div>
The build time increased compared to what?<br>
<br>
A second build, in a no update situation, should yield "no work to do" because nothing got updated.<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As of today, we re-enabled the UPDATE part of external project<br>
and also require CMake >= 2.8.9 and it works quite well. The<br>
overall build time is largely decreased.<br>
</blockquote>
<br></div>
Again, I don't understand how updating as part of the superbuild could ever result in a decreased build time...<br>
<br>
<br>
What am I missing here?<span class="HOEnZb"><font color="#888888"><br>
D<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br>
</div>