One other thing. You may try using the &quot;NMake Makefiles&quot; generator if you must use the VS10 compiler: the dependencies definitely work via the makefiles. I just tried it out...<br><br><br><div class="gmail_quote">
On Fri, Mar 4, 2011 at 10:15 AM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</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;">
Using:<br><br>  UPDATE_COMMAND &quot;&quot;<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 &quot;&quot; is working:<br>1&gt;  No update step for &#39;SAF-ext&#39;<br>

1&gt;  No patch step for &#39;SAF-ext&#39;<br><br>However, this seems to be some sort of &quot;Visual Studio 10&quot;-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" target="_blank">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"><div><div></div><div class="h5">On Fri, Mar 4, 2011 at 4:06 AM, Yves Martelli <span dir="ltr">&lt;<a href="mailto:ymartelli@cistib.upf.edu" target="_blank">ymartelli@cistib.upf.edu</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5"><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> &#39;<a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a>&#39;<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&#39;m under Microsoft Windows 7 and using Microsoft Visual Studio 2010 with CMake 2.8.4. It&#39;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 &quot;<a href="http://itk.org/ITK.git" target="_blank">http://itk.org/ITK.git</a>&quot;</span></p>

<p class="MsoNormal"><span lang="EN-GB">        GIT_TAG &quot;v3.20.0&quot;</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 &quot;&quot;</span></p><p class="MsoNormal"><span lang="EN-GB">        UPDATE_COMMAND &quot;&quot;</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&gt;------ Build started: Project: ITK-ext, Configuration: Debug x64 ------</span></p><p class="MsoNormal"><span lang="EN-GB">1&gt;Build started 21/02/2011 14:31:54.</span></p>

<p class="MsoNormal"><span lang="EN-GB">1&gt;InitializeBuildStatus:</span></p><p class="MsoNormal"><span lang="EN-GB">1&gt;  Creating &quot;x64\Debug\ITK-ext\ITK-ext.unsuccessfulbuild&quot; because &quot;AlwaysCreate&quot; was specified.</span></p>

<p class="MsoNormal"><span lang="EN-GB">1&gt;CustomBuild:</span></p><p class="MsoNormal"><span lang="EN-GB">1&gt;  Creating directories for &#39;ITK-ext&#39;</span></p><p class="MsoNormal"><span lang="EN-GB">1&gt;  Performing download step (git clone) for &#39;ITK-ext&#39;</span></p>

<p class="MsoNormal">...</p><p class="MsoNormal"> </p><p class="MsoNormal"><span lang="EN-GB">I thought that the UPDATE_COMMAND &quot;&quot; would solve this but it does not. </span>Can I deactivate this &quot;AlwaysCreate&quot;?</p>

<p class="MsoNormal"> </p><p class="MsoNormal">Thanks,<br><font color="#888888">Yves</font></p></div></div><br></div></div>_______________________________________________<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>
</blockquote></div><br>