Commit 1bd4e006 authored by Brad King's avatar Brad King
Browse files

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.
parent c196b3ca
......@@ -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}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment