summaryrefslogtreecommitdiffstats
path: root/Tests/Module
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-01-29 15:26:11 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-30 15:05:07 (GMT)
commit175ed02207ea5fe25aa7156acb2554d706611263 (patch)
tree5a6bc4c8108fb519f4a7e626b9153f17c2b5a2f6 /Tests/Module
parent4befecc77caa97aeb450d9a2b6bcbe0985dc4054 (diff)
downloadCMake-175ed02207ea5fe25aa7156acb2554d706611263.zip
CMake-175ed02207ea5fe25aa7156acb2554d706611263.tar.gz
CMake-175ed02207ea5fe25aa7156acb2554d706611263.tar.bz2
ExternalData: Allow ()-groups in series match regex
Refactor use of the ExternalData_SERIES_MATCH value to avoid assuming that it has no ()-groups that interfere with group indexing. Extend the Module.ExternalData test to cover this case.
Diffstat (limited to 'Tests/Module')
-rw-r--r--Tests/Module/ExternalData/Data2/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Module/ExternalData/Data2/CMakeLists.txt b/Tests/Module/ExternalData/Data2/CMakeLists.txt
index f8eedff..e6d8767 100644
--- a/Tests/Module/ExternalData/Data2/CMakeLists.txt
+++ b/Tests/Module/ExternalData/Data2/CMakeLists.txt
@@ -1,5 +1,5 @@
set(ExternalData_SERIES_PARSE "([0-9]+)(_\\.my\\.dat)$")
-set(ExternalData_SERIES_MATCH "[0-9]+")
+set(ExternalData_SERIES_MATCH "([0-9]+)")
ExternalData_Add_Test(Data2
NAME Data2Check
COMMAND ${CMAKE_COMMAND}