diff --git a/CMake/FindMuParser.cmake b/CMake/FindMuParser.cmake index 13065460e6367a0fe93dc7dde39d0888c7156456..eccc86803c7b6e403304699b1c73ea5734422c67 100644 --- a/CMake/FindMuParser.cmake +++ b/CMake/FindMuParser.cmake @@ -47,7 +47,7 @@ if(EXISTS "${MUPARSER_INCLUDE_DIR}/muParserDef.h") MUPARSER_VERSION_OLD_STYLE "${_muParserDef_h_CONTENTS}") # Try to find the version for muparser >= 2.3 - string(REGEX REPLACE ".*static *const *string_type *ParserVersion *= *string_type\\(_T\\(\"([0-9.]+)\"\\)\\);.*" + string(REGEX REPLACE ".*static *const *string_type *ParserVersion *= *string_type\\(_T\\(\"([0-9.]+)([^0-9.]+)?\"\\)\\);.*" "\\1" MUPARSER_VERSION "${MUPARSER_VERSION_OLD_STYLE}") if(MUPARSER_VERSION MATCHES "^[0-9]+\$")