[cmake-developers] [CMake 0014869]: ExternalProject - Configuring project failed after changing branch in SVN_REPOSITORY

Mantis Bug Tracker mantis at public.kitware.com
Tue Apr 8 17:12:57 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14869 
====================================================================== 
Reported By:                Jean-Christophe Fillion-Robin
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14869
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-04-08 22:12 WAT
Last Modified:              2014-04-08 22:12 WAT
====================================================================== 
Summary:                    ExternalProject - Configuring project failed after
changing branch in SVN_REPOSITORY
Description: 
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





Steps to Reproduce: 

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<

Additional Information: 

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 at 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 at 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 at 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
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-04-08 22:12 Jean-Christophe Fillion-RobinNew Issue                         
          
======================================================================



More information about the cmake-developers mailing list