diff --git a/development/autotests/ExportTests.cmake b/development/autotests/ExportTests.cmake index 3aa57677da..3b520585e7 100644 --- a/development/autotests/ExportTests.cmake +++ b/development/autotests/ExportTests.cmake @@ -98,9 +98,15 @@ macro(findexpr found testname listname rsublabel) # remove doubles in sublabel list(REMOVE_DUPLICATES tmpsublabel) else() - set(_itr "^${_itrx}$") + if (_itrx MATCHES "^!\(.*\)$") + set(_itr "^${CMAKE_MATCH_1}$") + set(_foundval 0) + else() + set(_itr "^${_itrx}$") + set(_foundval 1) + endif() if (${testname} MATCHES "${_itr}") - set(_found 1) + set(_found ${_foundval}) break() endif() endif()