Using:<br><br> UPDATE_COMMAND ""<br><br>is perfectly correct, and is working as intended.<br><br>You should see text like this in your output, which verifies that UPDATE_COMMAND "" is working:<br>1> No update step for 'SAF-ext'<br>
1> No patch step for 'SAF-ext'<br><br>However, this seems to be some sort of "Visual Studio 10"-only problem... I have reproduced your problem with Visual Studio 10, but do not see the same problem when using Visual Studio 9.<br>
<br>Attached to this new bug regarding this thread is a smaller project (smaller than ITK == not hard to do) that demonstrates the issue if anybody else wants to try it out:<br><br> <a href="http://public.kitware.com/Bug/view.php?id=11927">http://public.kitware.com/Bug/view.php?id=11927</a><br>
<br><br>Thanks for the report,<br>David<br><br><br><div class="gmail_quote">On Fri, Mar 4, 2011 at 4:06 AM, Yves Martelli <span dir="ltr"><<a href="mailto:ymartelli@cistib.upf.edu">ymartelli@cistib.upf.edu</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;"><div link="blue" vlink="purple" lang="ES-TRAD"><div><p class="MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB">Dear All,</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB">Sorry to repost but I am still stuck with this, would anyone have suggestions? Anyone had the same experience with the UPDATE_COMMAND not working?</span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB">Thanks,</span></p><p class="MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB">Yves</span></p><p class="MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB"> </span></p>
<div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;"><p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Yves Martelli <br>
<b>Sent:</b> lunes, 21 de febrero de 2011 15:00<br><b>To:</b> '<a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a>'<br><b>Subject:</b> EXTERNALPROJECT_ADD and AlwaysCreate</span></p></div></div><p class="MsoNormal">
</p><p class="MsoNormal"><span lang="EN-GB">Dear All,</span></p><p class="MsoNormal"><span lang="EN-GB">I’m trying to use the ExternalProject functionality. I'm under Microsoft Windows 7 and using Microsoft Visual Studio 2010 with CMake 2.8.4. It's a simple test, trying to compile some classes that need ITK, so I have an:</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal"><span lang="EN-GB"> EXTERNALPROJECT_ADD(</span></p><p class="MsoNormal"><span lang="EN-GB"> ITK-ext</span></p><p class="MsoNormal"><span lang="EN-GB"> GIT_REPOSITORY "<a href="http://itk.org/ITK.git" target="_blank">http://itk.org/ITK.git</a>"</span></p>
<p class="MsoNormal"><span lang="EN-GB"> GIT_TAG "v3.20.0"</span></p><p class="MsoNormal"><span lang="EN-GB"> CMAKE_ARGS</span></p><p class="MsoNormal"><span lang="EN-GB"> -DBUILD_SHARED_LIBS:BOOL=ON</span></p>
<p class="MsoNormal"><span lang="EN-GB"> -DBUILD_TESTING:BOOL=OFF</span></p><p class="MsoNormal"><span lang="EN-GB"> -DBUILD_EXAMPLES:BOOL=OFF</span></p><p class="MsoNormal"><span lang="EN-GB"> -DITK_USE_OPTIMIZED_REGISTRATION_METHODS:BOOL=ON</span></p>
<p class="MsoNormal"><span lang="EN-GB"> -DITK_USE_REVIEW:BOOL=ON</span></p><p class="MsoNormal"><span lang="EN-GB"> INSTALL_COMMAND ""</span></p><p class="MsoNormal"><span lang="EN-GB"> UPDATE_COMMAND ""</span></p>
<p class="MsoNormal"><span lang="EN-GB"> ) </span></p><p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal"><span lang="EN-GB">My problem is that it works fine the first time (download and compile ITK and my project). But every time after, when I build, it tries to download ITK again, which I do not want (only the first time is enough). The output of visual studio is:</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal"><span lang="EN-GB">1>------ Build started: Project: ITK-ext, Configuration: Debug x64 ------</span></p><p class="MsoNormal"><span lang="EN-GB">1>Build started 21/02/2011 14:31:54.</span></p>
<p class="MsoNormal"><span lang="EN-GB">1>InitializeBuildStatus:</span></p><p class="MsoNormal"><span lang="EN-GB">1> Creating "x64\Debug\ITK-ext\ITK-ext.unsuccessfulbuild" because "AlwaysCreate" was specified.</span></p>
<p class="MsoNormal"><span lang="EN-GB">1>CustomBuild:</span></p><p class="MsoNormal"><span lang="EN-GB">1> Creating directories for 'ITK-ext'</span></p><p class="MsoNormal"><span lang="EN-GB">1> Performing download step (git clone) for 'ITK-ext'</span></p>
<p class="MsoNormal">...</p><p class="MsoNormal"> </p><p class="MsoNormal"><span lang="EN-GB">I thought that the UPDATE_COMMAND "" would solve this but it does not. </span>Can I deactivate this "AlwaysCreate"?</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thanks,<br><font color="#888888">Yves</font></p></div></div><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>