<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 8, 2014 at 2:55 PM, Stefan Eilemann <span dir="ltr"><<a href="mailto:eilemann@gmail.com" target="_blank">eilemann@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><br>
On 8. Feb 2014, at 14:28, David Cole <<a href="mailto:dlrdave@aol.com">dlrdave@aol.com</a>> wrote:<br>
<br>
> When you give a git repo for ExternalProject, it will *always* execute the UPDATE_COMMAND by default. And then, all the steps after update will re-execute since update re-ran.<br>
<br>
</div>We solved this by using a CMake script as an update step for autoconf projects, which does nothing if configure ran already:<br>
  <a href="https://github.com/Eyescale/Buildyard/blob/master/CMake/UseExternalAutoconf.cmake#L26" target="_blank">https://github.com/Eyescale/Buildyard/blob/master/CMake/UseExternalAutoconf.cmake#L26</a><br>
<br>
Used here, which feeds into ExternalProject just below:<br>
  <a href="https://github.com/Eyescale/Buildyard/blob/master/CMake/UseExternal.cmake#L320" target="_blank">https://github.com/Eyescale/Buildyard/blob/master/CMake/UseExternal.cmake#L320</a><br>
<br>
<br>
HTH,<br>
<br>
Stefan.<br>
<span class=""><font color="#888888">--<br>
<a href="http://www.eyescale.ch" target="_blank">http://www.eyescale.ch</a><br>
<a href="https://github.com/Eyescale/" target="_blank">https://github.com/Eyescale/</a><br>
<a href="http://www.linkedin.com/in/eilemann" target="_blank">http://www.linkedin.com/in/eilemann</a><br>
<br>
<br>
<br>
<br>
</font></span></blockquote></div>I tried the UPDATE_COMMAND solution proposed, and it had no effect on the behavior.  </div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">[ 28%] Performing update step for 'grub'</div>
<div class="gmail_extra">Already on 'master'</div><div class="gmail_extra">Your branch is up-to-date with 'origin/master'.</div><div class="gmail_extra">[ 31%] Performing configure step for 'grub'</div>
<div class="gmail_extra">Importing unicode...</div><div class="gmail_extra">Importing libgcrypt...</div><div>.....</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">rebuild was performed unnecessarily.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">What am I doing wrong ?</div><div class="gmail_extra"><br></div></div>