|
|
@@ -2604,6 +2604,9 @@ if(BUILD_TESTING)
|
|
|
|
|
|
# Test CTest Update with BZR
|
|
|
if(CMake_TEST_CTestUpdate_BZR)
|
|
|
+ if(TEST_HOME)
|
|
|
+ file(MAKE_DIRECTORY "${TEST_HOME}/.bazaar")
|
|
|
+ endif()
|
|
|
find_program(BZR_EXECUTABLE NAMES bzr)
|
|
|
mark_as_advanced(BZR_EXECUTABLE)
|
|
|
if(NOT BZR_EXECUTABLE)
|
|
|
@@ -2671,16 +2674,10 @@ if(BUILD_TESTING)
|
|
|
endif()
|
|
|
|
|
|
# Test CTest Update with P4
|
|
|
- if(NOT DEFINED CMake_TEST_CTestUpdate_P4 OR CMake_TEST_CTestUpdate_P4)
|
|
|
+ if(CMake_TEST_CTestUpdate_P4)
|
|
|
find_program(P4_EXECUTABLE NAMES p4)
|
|
|
find_program(P4D_EXECUTABLE NAMES p4d)
|
|
|
mark_as_advanced(P4_EXECUTABLE P4D_EXECUTABLE)
|
|
|
- endif()
|
|
|
- if(NOT DEFINED CMake_TEST_CTestUpdate_P4 AND P4_EXECUTABLE AND P4D_EXECUTABLE
|
|
|
- AND (UNIX OR NOT "${P4_EXECUTABLE};${P4D_EXECUTABLE}" MATCHES "cygwin"))
|
|
|
- set(CMake_TEST_CTestUpdate_P4 1)
|
|
|
- endif()
|
|
|
- if(CMake_TEST_CTestUpdate_P4)
|
|
|
if(NOT P4_EXECUTABLE OR NOT P4D_EXECUTABLE)
|
|
|
message(FATAL_ERROR "CMake_TEST_CTestUpdate_HG enabled but P4_EXECUTABLE and P4D_EXECUTABLE are not both not found.")
|
|
|
endif()
|