diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-03-28 17:43:59 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-03-28 17:43:59 +0200 |
commit | 4f1419e9c3e903b8f502e2872f36ca968bcc9c62 (patch) | |
tree | 647a7715ad515c0ed52538d08397e138901d0220 /cmake | |
parent | 6feb1d3c0b103ef753b67ab0815be6f9cf7f4f28 (diff) |
add the possibility to specify a list of sub-test suffixes in a compact way
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/EigenTesting.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index 4c8039315..96e879316 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -120,9 +120,9 @@ macro(ei_add_test testname) file(READ "${testname}.cpp" test_source) set(parts 0) - string(REGEX MATCHALL "CALL_SUBTEST_[0-9]+|EIGEN_TEST_PART_[0-9]+" + string(REGEX MATCHALL "CALL_SUBTEST_[0-9]+|EIGEN_TEST_PART_[0-9]+|EIGEN_SUFFIXES(;[0-9]+)+" occurences "${test_source}") - string(REGEX REPLACE "CALL_SUBTEST_|EIGEN_TEST_PART_" "" suffixes "${occurences}") + string(REGEX REPLACE "CALL_SUBTEST_|EIGEN_TEST_PART_|EIGEN_SUFFIXES" "" suffixes "${occurences}") list(REMOVE_DUPLICATES suffixes) if(EIGEN_SPLIT_LARGE_TESTS AND suffixes) add_custom_target(${testname}) |