From 1bd4e006aa8ae44d3d7777bcf7da56ed7be185fd Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 24 Jun 2014 13:53:27 -0400 Subject: Tests: Fix CMAKE_TESTS_CDASH_SERVER parsing Allow the value to end without a slash and have an empty server path component. This is needed to match "http://open.cdash.org" correctly. --- Tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 273a541..e443509 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -2549,7 +2549,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release if (CMAKE_TESTS_CDASH_SERVER) - set(regex "^([^:]+)://([^/]+)(/.*)$") + set(regex "^([^:]+)://([^/]+)(.*)$") if ("${CMAKE_TESTS_CDASH_SERVER}" MATCHES "${regex}") set(protocol "${CMAKE_MATCH_1}") -- cgit v0.12