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.
This commit is contained in:
Brad King 2014-06-24 13:53:27 -04:00
parent c196b3ca02
commit 1bd4e006aa
1 changed files with 1 additions and 1 deletions

View File

@ -2549,7 +2549,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
if (CMAKE_TESTS_CDASH_SERVER) if (CMAKE_TESTS_CDASH_SERVER)
set(regex "^([^:]+)://([^/]+)(/.*)$") set(regex "^([^:]+)://([^/]+)(.*)$")
if ("${CMAKE_TESTS_CDASH_SERVER}" MATCHES "${regex}") if ("${CMAKE_TESTS_CDASH_SERVER}" MATCHES "${regex}")
set(protocol "${CMAKE_MATCH_1}") set(protocol "${CMAKE_MATCH_1}")