Using: UPDATE_COMMAND ""
is perfectly correct, and is working as intended. You should see text like this in your output, which verifies that UPDATE_COMMAND "" is working: 1> No update step for 'SAF-ext' 1> No patch step for 'SAF-ext' 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. 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: http://public.kitware.com/Bug/view.php?id=11927 Thanks for the report, David On Fri, Mar 4, 2011 at 4:06 AM, Yves Martelli <ymarte...@cistib.upf.edu>wrote: > Dear All, > > 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? > > Thanks, > > Yves > > > > *From:* Yves Martelli > *Sent:* lunes, 21 de febrero de 2011 15:00 > *To:* 'cmake@cmake.org' > *Subject:* EXTERNALPROJECT_ADD and AlwaysCreate > > > > Dear All, > > 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: > > > > EXTERNALPROJECT_ADD( > > ITK-ext > > GIT_REPOSITORY "http://itk.org/ITK.git" > > GIT_TAG "v3.20.0" > > CMAKE_ARGS > > -DBUILD_SHARED_LIBS:BOOL=ON > > -DBUILD_TESTING:BOOL=OFF > > -DBUILD_EXAMPLES:BOOL=OFF > > -DITK_USE_OPTIMIZED_REGISTRATION_METHODS:BOOL=ON > > -DITK_USE_REVIEW:BOOL=ON > > INSTALL_COMMAND "" > > UPDATE_COMMAND "" > > ) > > > > 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: > > > > 1>------ Build started: Project: ITK-ext, Configuration: Debug x64 ------ > > 1>Build started 21/02/2011 14:31:54. > > 1>InitializeBuildStatus: > > 1> Creating "x64\Debug\ITK-ext\ITK-ext.unsuccessfulbuild" because > "AlwaysCreate" was specified. > > 1>CustomBuild: > > 1> Creating directories for 'ITK-ext' > > 1> Performing download step (git clone) for 'ITK-ext' > > ... > > > > I thought that the UPDATE_COMMAND "" would solve this but it does not. Can > I deactivate this "AlwaysCreate"? > > > > Thanks, > Yves > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake