Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
b70b232e
Commit
b70b232e
authored
Apr 21, 2022
by
Julien Osman
Browse files
BUG: Correct regex to parse muparser version
parent
26085b00
Pipeline
#10404
passed with stages
in 133 minutes and 37 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
CMake/FindMuParser.cmake
View file @
b70b232e
...
...
@@ -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]+
\$
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment