From 07c840fac5092d893f8326d54aa24bd5a9e04f45 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 6 Sep 2013 02:41:13 +0000 Subject: [PATCH] Support lowercase characters in test names git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30618 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/macros/macro_deal_ii_pickup_tests.cmake | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/deal.II/cmake/macros/macro_deal_ii_pickup_tests.cmake b/deal.II/cmake/macros/macro_deal_ii_pickup_tests.cmake index de26c18acc..af6302289f 100644 --- a/deal.II/cmake/macros/macro_deal_ii_pickup_tests.cmake +++ b/deal.II/cmake/macros/macro_deal_ii_pickup_tests.cmake @@ -46,12 +46,17 @@ MACRO(DEAL_II_PICKUP_TESTS) # Query configuration and check whether we support it. Otherwise # set _define_test to FALSE: # - STRING(REGEX MATCHALL "WITH_([0-9]|[A-Z]|_)*=(ON|OFF)" _matches ${_test}) + STRING(REGEX MATCHALL + "with_([0-9]|[a-z]|_)*=(on|off|yes|no|true|false)" _matches ${_test} + ) FOREACH(_match ${_matches}) - STRING(REGEX REPLACE "^(WITH_([0-9]|[A-Z]|_)*)=(ON|OFF)$" "\\1" + STRING(REGEX REPLACE + "^(with_([0-9]|[a-z]|_)*)=(on|off|yes|no|true|false)$" "\\1" _feature ${_match} ) - STRING(REGEX MATCH "(ON|OFF)$" _boolean ${_match}) + STRING(TOUPPER ${_feature} _feature) + + STRING(REGEX MATCH "(on|off|yes|no|true|false)$" _boolean ${_match}) IF( (DEAL_II_${_feature} AND NOT ${_boolean}) OR (NOT DEAL_II_${_feature} AND ${_boolean}) ) -- 2.39.5