summaryrefslogtreecommitdiffstats
path: root/Modules/CTest.cmake
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2018-12-07 23:01:20 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-16 15:34:08 (GMT)
commitd6475daa79810e332c3d2d1659e3d73250717219 (patch)
tree17ddbb9b7d8c0cf4dbaf7743ab9525eed9d9f871 /Modules/CTest.cmake
parent938f06fda69a0f4ef04b2ed43a945a3c901b9750 (diff)
downloadCMake-d6475daa79810e332c3d2d1659e3d73250717219.zip
CMake-d6475daa79810e332c3d2d1659e3d73250717219.tar.gz
CMake-d6475daa79810e332c3d2d1659e3d73250717219.tar.bz2
Modules/CTest: Set SubmitURL
Diffstat (limited to 'Modules/CTest.cmake')
-rw-r--r--Modules/CTest.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake
index 8848bdd..648e473 100644
--- a/Modules/CTest.cmake
+++ b/Modules/CTest.cmake
@@ -89,6 +89,7 @@ if(BUILD_TESTING)
if(EXISTS "${PROJECT_SOURCE_DIR}/CTestConfig.cmake")
include("${PROJECT_SOURCE_DIR}/CTestConfig.cmake")
SET_IF_SET_AND_NOT_SET(NIGHTLY_START_TIME "${CTEST_NIGHTLY_START_TIME}")
+ SET_IF_SET_AND_NOT_SET(SUBMIT_URL "${CTEST_SUBMIT_URL}")
SET_IF_SET_AND_NOT_SET(DROP_METHOD "${CTEST_DROP_METHOD}")
SET_IF_SET_AND_NOT_SET(DROP_SITE "${CTEST_DROP_SITE}")
SET_IF_SET_AND_NOT_SET(DROP_SITE_USER "${CTEST_DROP_SITE_USER}")
@@ -111,6 +112,18 @@ if(BUILD_TESTING)
endif()
SET_IF_NOT_SET (NIGHTLY_START_TIME "00:00:00 EDT")
+ if(NOT SUBMIT_URL)
+ set(SUBMIT_URL "${DROP_METHOD}://")
+ if(DROP_SITE_USER)
+ string(APPEND SUBMIT_URL "${DROP_SITE_USER}")
+ if(DROP_SITE_PASSWORD)
+ string(APPEND SUBMIT_URL ":${DROP_SITE_PASSWORD}")
+ endif()
+ string(APPEND SUBMIT_URL "@")
+ endif()
+ string(APPEND SUBMIT_URL "${DROP_SITE}${DROP_SITE_LOCATION}")
+ endif()
+
find_program(CVSCOMMAND cvs )
set(CVS_UPDATE_OPTIONS "-d -A -P" CACHE STRING
"Options passed to the cvs update command.")