diff options
author | Brad King <brad.king@kitware.com> | 2014-07-02 13:54:56 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-07-02 13:54:56 (GMT) |
commit | 477b07213a806c825f95fdfacd444028e1783dc2 (patch) | |
tree | 60cea98259f4ae0f6e13954b97b16eb36bc4ecf4 | |
parent | 38c9eddad87511ddcb252e0363bdf14ef9b3b866 (diff) | |
parent | 7269e69ffa9a77bccd7eec9435463d85c0762493 (diff) | |
download | CMake-477b07213a806c825f95fdfacd444028e1783dc2.zip CMake-477b07213a806c825f95fdfacd444028e1783dc2.tar.gz CMake-477b07213a806c825f95fdfacd444028e1783dc2.tar.bz2 |
Merge topic 'ExternalProject_test'
7269e69f ExternalProject test: remove unused file
-rw-r--r-- | Tests/ExternalProject/TryCheckout.cmake | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/Tests/ExternalProject/TryCheckout.cmake b/Tests/ExternalProject/TryCheckout.cmake deleted file mode 100644 index 6a396c3..0000000 --- a/Tests/ExternalProject/TryCheckout.cmake +++ /dev/null @@ -1,54 +0,0 @@ -find_package(CVS) -find_package(Subversion) - - -function(try_cvs_checkout repository module dir result_var) - # Assume cvs checkouts will not work: - set(${result_var} 0 PARENT_SCOPE) - - if(CVS_EXECUTABLE) - message(STATUS "try_cvs_checkout") - - # Ensure directory exists so we can call cvs in it: - file(MAKE_DIRECTORY "${dir}") - - # Try to do the cvs checkout command: - execute_process(COMMAND ${CVS_EXECUTABLE} -d ${repository} co ${module} - WORKING_DIRECTORY ${dir} - TIMEOUT 30 - RESULT_VARIABLE rv) - - # If it worked, cvs checkouts will work: - if(rv EQUAL 0) - set(${result_var} 1 PARENT_SCOPE) - endif() - - message(STATUS "try_cvs_checkout -- done") - endif() -endfunction() - - -function(try_svn_checkout repository dir result_var) - # Assume svn checkouts will not work: - set(${result_var} 0 PARENT_SCOPE) - - if(Subversion_SVN_EXECUTABLE) - message(STATUS "try_svn_checkout") - - # Ensure directory exists so we can call svn in it: - file(MAKE_DIRECTORY "${dir}") - - # Try to do the svn checkout command: - execute_process(COMMAND ${Subversion_SVN_EXECUTABLE} co ${repository} ${dir} - WORKING_DIRECTORY ${dir} - TIMEOUT 30 - RESULT_VARIABLE rv) - - # If it worked, svn checkouts will work: - if(rv EQUAL 0) - set(${result_var} 1 PARENT_SCOPE) - endif() - - message(STATUS "try_svn_checkout -- done") - endif() -endfunction() |