[CMake] Checkout specific revision from svn with ExternalProject_Add

David Cole dlrdave at aol.com
Tue May 21 11:48:03 EDT 2013


-----Original Message-----
From: Jean-Christophe Fillion-Robin <jchris.fillionr at kitware.com>
To: Jens Auer <jensa at miltenyibiotec.de>
Cc: cmake <cmake at cmake.org>
Sent: Tue, May 21, 2013 11:38 am
Subject: Re: [CMake] Checkout specific revision from svn with 
ExternalProject_Add


Hi Jens, 


You could specify the revision using:  SVN_REVISION -r "17027"


For example:
  https://github.com/Slicer/Slicer/blob/f3b155fdf266134c274c97773710f4d4e
7514858/SuperBuild/External_EMSegment.cmake#L25


Hth
Jc




On Tue, May 21, 2013 at 11:08 AM, Jens Auer <jensa at miltenyibiotec.de> 
wrote:

Hi,

I am trying to checkout a specific revision of external dependencies 
 from our repositoty using the SVN_REPOSITOTY parameter of 
ExternalProject_Add, but always get the following error:
2>  Creating directories for 'Hippomocks'
2>  Performing download step (SVN checkout) for 'Hippomocks'
2>  A    Hippomocks\hippomocks\include
2>  A    Hippomocks\hippomocks\include\hippomocks
2>  A    Hippomocks\hippomocks\include\hippomocks\hippomocks.h
2>  A    Hippomocks\hippomocks\CMakeLists.txt
2>  Checked out revision 8888.
2>  svn: E125002: '8887' does not appear to be a URL

When I looked into the source code, I see that the command line for svn 
is created as
    set(cmd ${Subversion_SVN_EXECUTABLE} co ${svn_repository} 
${svn_revision}
      --non-interactive ${svn_trust_cert_args} ${svn_user_pw_args} 
${src_name})

According to the svn documentation page, I would have to give the 
revision with a special option -revision. Is this a bug or am I 
misinterpreting the ExternalProject_Add command parameters? Is 
SVN_REVISION the path in the repository I specify with SVN_REPOSITORY?
--

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






--
+1 919 869 8849


--

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



You can also specify the svn revision as a date stamp string rather 
than a specific revision number, as in this line of code in the test 
suite for ExternalProject:

     
http://cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/ExternalProject/CMakeLists.txt;h=602ff0f65ee947d8efae4afa3af2fbc973928a65;hb=f206cce2cac8b018d94b2c4f39b35c6928d38bd3#l400

(Search that page for SVN_REVISION to see how it's tested...)


HTH,
David



More information about the CMake mailing list