From b70b232e3a962cbe3ee00a36510390d17f887dfd Mon Sep 17 00:00:00 2001 From: Julien Osman Date: Thu, 21 Apr 2022 10:13:50 +0200 Subject: [PATCH] BUG: Correct regex to parse muparser version --- CMake/FindMuParser.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/FindMuParser.cmake b/CMake/FindMuParser.cmake index 13065460e6..eccc86803c 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]+\$") -- GitLab