Skip to content

Commit

Permalink
Fix regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Nov 27, 2023
1 parent c594b49 commit ad4a516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmexclass/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ macro(MatlabConfigure)
message(STATUS "File content:")
message(STATUS "${VERSION_INFO_TEXT}")

string(REGEX MATCH "<version>[.]+</version>" STRING_MATCH ${VERSION_INFO_TEXT})
string(REGEX MATCH "<version>[\S]+<\/version>" STRING_MATCH ${VERSION_INFO_TEXT})
message(STATUS "STRING_MATCH = ${STRING_MATCH}")

if (NOT DEFINED MATLAB_RELEASE_VERSION)
# Temporarily require users to supply MATLAB_RELEASE_VERSION if
# find_package(Matlab) fails to derive the version from the root
Expand Down

0 comments on commit ad4a516

Please sign in to comment.