Browse Source

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.
Brad King 11 years ago
parent
commit
1bd4e006aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/CMakeLists.txt

+ 1 - 1
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}")