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

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

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to