I would strongly encourage you to allow the download to occur at build time using ExternalProject_Add. There's no need to make the configure step of CMake wait for a download.<br><br>There is no way to execute the custom command steps of an ExternalProject at cmake configure time...<br>
<br>If you really want to do it, though, just use "execute_process" and give it the command that you want to run to clone or pull from the git repo.<br><br>"execute_process" calls, when used in a CMakeLists.txt file, run while CMake is configuring the build tree.<br>
<br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Thu, Apr 28, 2011 at 12:53 PM, Jan Wurster <span dir="ltr"><<a href="mailto:Jan.Wurster@icido.de">Jan.Wurster@icido.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear list,<br>
<br>
as I'm encountering a case where I'd like to trigger the download of a<br>
file (3rd party) structure from a git repository I've been looking into<br>
ExternalProject_add and its benefits. However the key element would be<br>
to perform the download step immediately, i.e. at cmake first run time<br>
in the configure step of the wrapping project.<br>
<br>
Is it possible to trigger individual steps to be done 'now' instead of<br>
during build time or should I look at implementing a custom script for<br>
this case?<br>
<br>
Thanks in advance, cheers,<br>
Jan<br>
<br>
<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>