MantisBT - CMake
View Issue Details
0014869CMakeCMakepublic2014-04-08 17:122016-06-10 14:31
Jean-Christophe Fillion-Robin 
Kitware Robot 
normalminorhave not tried
closedmoved 
 
 
0014869: ExternalProject - Configuring project failed after changing branch in SVN_REPOSITORY
The following error is reported:

[ 12%] Performing download step (SVN checkout) for 'EMSegment'
svn: E155000: '/home/jchris/Projects/svn-swtich-cmake-bug/build/EMSegment' is already a working copy for a different URL




Configure and build the example posted below, then re-configure with -DSWITCH)URL:BOOL=1


# -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<
cmake_minimum_required(VERSION 2.8.12)
project(Foo)
include(ExternalProject)

if(NOT SWITCH_URL)

  ExternalProject_Add(EMSegment
    SVN_REPOSITORY "http://svn.slicer.org/Slicer3/trunk/Modules/EMSegment" [^]
    SVN_REVISION -r "17040"
    SOURCE_DIR EMSegment
    BUILD_IN_SOURCE 1
    CONFIGURE_COMMAND ""
    BUILD_COMMAND ""
    INSTALL_COMMAND ""
    )

else()

  ExternalProject_Add(EMSegment
    SVN_REPOSITORY "http://svn.slicer.org/Slicer3/branches/Slicer4-EMSegment" [^]
    SVN_REVISION -r "17043"
    SOURCE_DIR EMSegment
    BUILD_IN_SOURCE 1
    CONFIGURE_COMMAND ""
    BUILD_COMMAND ""
    INSTALL_COMMAND ""
    )

endif()
# -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<

Log step by step ...


$ ~/Support/cmake-2.8.12.2/bin/cmake ../
-- The C compiler identification is GNU 4.8.1
[...]
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jchris/Projects/svn-swtich-cmake-bug/build

jchris@karakoram:build $ make
Scanning dependencies of target EMSegment
[ 12%] Creating directories for 'EMSegment'
[ 25%] Performing download step (SVN checkout) for 'EMSegment'
A EMSegment/CMake
A EMSegment/CMake/EM_Slicer3_GenerateConfigureFile.cmake
[...]
Checked out revision 17040.
[ 37%] No patch step for 'EMSegment'
[ 50%] Performing update step (SVN update) for 'EMSegment'
Updating '.':
At revision 17040.
[ 62%] No configure step for 'EMSegment'
[ 75%] No build step for 'EMSegment'
[ 87%] No install step for 'EMSegment'
[100%] Completed 'EMSegment'
[100%] Built target EMSegment

jchris@karakoram:build $ ~/Support/cmake-2.8.12.2/bin/cmake -DSWITCH_URL:BOOL=1 .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jchris/Projects/svn-swtich-cmake-bug/build

jchris@karakoram:build $ make
[ 12%] Performing download step (SVN checkout) for 'EMSegment'
svn: E155000: '/home/jchris/Projects/svn-swtich-cmake-bug/build/EMSegment' is already a working copy for a different URL
make[2]: *** [EMSegment-prefix/src/EMSegment-stamp/EMSegment-download] Error 1
make[1]: *** [CMakeFiles/EMSegment.dir/all] Error 2
make: *** [all] Error 2
No tags attached.
Issue History
2014-04-08 17:12Jean-Christophe Fillion-RobinNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042531
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042531)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.