<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES-TRAD link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-GB>Dear All,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>I&#8217;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:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp; EXTERNALPROJECT_ADD(<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ITK-ext<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GIT_REPOSITORY &quot;http://itk.org/ITK.git&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GIT_TAG &quot;v3.20.0&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMAKE_ARGS<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DBUILD_SHARED_LIBS:BOOL=ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DBUILD_TESTING:BOOL=OFF<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DBUILD_EXAMPLES:BOOL=OFF<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DITK_USE_OPTIMIZED_REGISTRATION_METHODS:BOOL=ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DITK_USE_REVIEW:BOOL=ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INSTALL_COMMAND &quot;&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UPDATE_COMMAND &quot;&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>&nbsp;&nbsp;&nbsp; ) <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p>&nbsp;</o:p></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:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-GB>1&gt;------ Build started: Project: ITK-ext, Configuration: Debug x64 ------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1&gt;Build started 21/02/2011 14:31:54.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1&gt;InitializeBuildStatus:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1&gt;&nbsp; Creating &quot;x64\Debug\ITK-ext\ITK-ext.unsuccessfulbuild&quot; because &quot;AlwaysCreate&quot; was specified.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1&gt;CustomBuild:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1&gt;&nbsp; Creating directories for 'ITK-ext'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1&gt;&nbsp; Performing download step (git clone) for 'ITK-ext'<o:p></o:p></span></p><p class=MsoNormal>...<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></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;?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks,<br>Yves<o:p></o:p></p></div></body></html>