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:
parent
c196b3ca02
commit
1bd4e006aa
|
@ -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}")
|
||||||
|
|
Loading…
Reference in New Issue