<div dir="ltr"><div><div><div>There's a related issue, I think, if you skip the update step, then the project never rebuilds, since reconfigure and rebuild depend on update. So if you modify a source file of a project without a download command, then superbuild will not rebuild the project. So my workaround (used in VES, for example) looks like this:<br>
<br>macro(force_build proj)<br> ExternalProject_Add_Step(${proj} forcebuild<br> COMMAND ${CMAKE_COMMAND} -E remove ${base}/Stamp/${proj}/${proj}-build<br> DEPENDEES configure<br> DEPENDERS build<br> ALWAYS 1<br>
)<br>endmacro()<br><br></div>ExternalProject_Add(myproject<br> DOWNLOAD_COMMAND ""<br> ....)<br></div>force_build(myproject)<br><br><br></div><div>I guess I could modify my force_build macro so only make re-runs, not configure && make.<br>
<br></div><div>Pat<br></div><div><div><div><br><br><br><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 16, 2013 at 11:59 AM, 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">It *could* work, depending on the project.<br>
<br>
I wouldn't do it.<br>
<br>
But it *could* work.<br>
<br>
</blockquote></div><br></div>