<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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 style='color:#1F497D'>Dear All,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='color:#1F497D'>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?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='color:#1F497D'>Yves<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:ES-TRAD'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:ES-TRAD'> Yves Martelli <br><b>Sent:</b> lunes, 21 de febrero de 2011 15:00<br><b>To:</b> 'cmake@cmake.org'<br><b>Subject:</b> EXTERNALPROJECT_ADD and AlwaysCreate<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-GB>Dear All,<o:p></o:p></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:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB> EXTERNALPROJECT_ADD(<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> ITK-ext<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> GIT_REPOSITORY "<a href="http://itk.org/ITK.git">http://itk.org/ITK.git</a>"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> GIT_TAG "v3.20.0"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> CMAKE_ARGS<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> -DBUILD_SHARED_LIBS:BOOL=ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> -DBUILD_TESTING:BOOL=OFF<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> -DBUILD_EXAMPLES:BOOL=OFF<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> -DITK_USE_OPTIMIZED_REGISTRATION_METHODS:BOOL=ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> -DITK_USE_REVIEW:BOOL=ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> INSTALL_COMMAND ""<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> UPDATE_COMMAND ""<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> ) <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </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> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>1>------ Build started: Project: ITK-ext, Configuration: Debug x64 ------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1>Build started 21/02/2011 14:31:54.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1>InitializeBuildStatus:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1> Creating "x64\Debug\ITK-ext\ITK-ext.unsuccessfulbuild" because "AlwaysCreate" was specified.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1>CustomBuild:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1> Creating directories for 'ITK-ext'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1> 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> </o:p></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"?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<br>Yves<o:p></o:p></p></div></body></html>