[CMake] Checkout specific revision from svn with ExternalProject_Add

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Tue May 21 11:38:16 EDT 2013


Hi Jens,

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

For example:

https://github.com/Slicer/Slicer/blob/f3b155fdf266134c274c97773710f4d4e7514858/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130521/f8443ab8/attachment.htm>


More information about the CMake mailing list