summaryrefslogtreecommitdiffstats
path: root/Tests/ExternalProject
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-06-26 15:32:04 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-06-26 15:32:04 (GMT)
commit688db8a17d8c24c165ebaaeeb2f51ad559f4f9c9 (patch)
tree38188469bc8e225315d836e22bf9922919e19424 /Tests/ExternalProject
parentec10b44d1ee665d5e1bb3804bfcd8ee269eefc85 (diff)
downloadCMake-688db8a17d8c24c165ebaaeeb2f51ad559f4f9c9.zip
CMake-688db8a17d8c24c165ebaaeeb2f51ad559f4f9c9.tar.gz
CMake-688db8a17d8c24c165ebaaeeb2f51ad559f4f9c9.tar.bz2
ENH: Do not unzip the local repositories unless CVS and SVN executables are available. Add 'configure' step to the repository extraction 'projects' to print the version number of CVS and SVN in the dashboard test/build output.
Diffstat (limited to 'Tests/ExternalProject')
-rw-r--r--Tests/ExternalProject/CMakeLists.txt53
1 files changed, 27 insertions, 26 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt
index ca31f14..5067a15 100644
--- a/Tests/ExternalProject/CMakeLists.txt
+++ b/Tests/ExternalProject/CMakeLists.txt
@@ -58,32 +58,6 @@ ep_add(${proj}
)
-# Unzip/untar the repositories in our source folder so that other
-# projects below may use them to test the various source control
-# systems
-#
-set(proj SetupLocalCVSRepository)
-set(local_cvs_repo "${CMAKE_CURRENT_BINARY_DIR}/LocalRepositories/CVS")
-ep_add(${proj}
- SOURCE_DIR ${local_cvs_repo}
- URL ${CMAKE_CURRENT_SOURCE_DIR}/cvsrepo.tgz
- BUILD_COMMAND ""
- CONFIGURE_COMMAND ""
- INSTALL_COMMAND ""
-)
-
-set(proj SetupLocalSVNRepository)
-set(local_svn_repo "${CMAKE_CURRENT_BINARY_DIR}/LocalRepositories/SVN")
-set(local_svn_repo_url "file:///${local_svn_repo}/TutorialStep1")
-ep_add(${proj}
- SOURCE_DIR ${local_svn_repo}
- URL ${CMAKE_CURRENT_SOURCE_DIR}/svnrepo.tgz
- BUILD_COMMAND ""
- CONFIGURE_COMMAND ""
- INSTALL_COMMAND ""
-)
-
-
# Local DIR:
#
if(can_build_tutorial_step5)
@@ -146,6 +120,19 @@ ep_add(${proj}
if(CVS_EXECUTABLE)
+ # Unzip/untar the CVS repository in our source folder so that other
+ # projects below may use it to test CVS args of ep_add
+ #
+ set(proj SetupLocalCVSRepository)
+ set(local_cvs_repo "${CMAKE_CURRENT_BINARY_DIR}/LocalRepositories/CVS")
+ ep_add(${proj}
+ SOURCE_DIR ${local_cvs_repo}
+ URL ${CMAKE_CURRENT_SOURCE_DIR}/cvsrepo.tgz
+ BUILD_COMMAND ""
+ CONFIGURE_COMMAND ${CVS_EXECUTABLE} --version
+ INSTALL_COMMAND ""
+ )
+
# CVS by date stamp:
#
set(proj TutorialStep1-CVS-20090625)
@@ -196,6 +183,20 @@ endif()
if(Subversion_SVN_EXECUTABLE)
+ # Unzip/untar the SVN repository in our source folder so that other
+ # projects below may use it to test SVN args of ep_add
+ #
+ set(proj SetupLocalSVNRepository)
+ set(local_svn_repo "${CMAKE_CURRENT_BINARY_DIR}/LocalRepositories/SVN")
+ set(local_svn_repo_url "file:///${local_svn_repo}/TutorialStep1")
+ ep_add(${proj}
+ SOURCE_DIR ${local_svn_repo}
+ URL ${CMAKE_CURRENT_SOURCE_DIR}/svnrepo.tgz
+ BUILD_COMMAND ""
+ CONFIGURE_COMMAND ${Subversion_SVN_EXECUTABLE} --version
+ INSTALL_COMMAND ""
+ )
+
# SVN by date stamp:
#
set(proj TutorialStep1-SVN-20090625)