Skip to content

Commit

Permalink
Get simplified version string
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Nov 27, 2023
1 parent 60d4f9d commit a8b2343
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libmexclass/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ macro(MatlabConfigure)
string(SUBSTRING ${VERSION_INFO_TEXT} ${START_POS_ADJUSTED} ${LENGTH} VERSION_SUBSTRING)
message(STATUS "VERSION_SUBSTRING = ${VERSION_SUBSTRING}")

string(REGEXP MATCH "^[0-9]+[.][0-9]+" MATCHED ${VERSION_SUBSTRING})
message(STATUS "MATCHED = ${MATCHED}")

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 a8b2343

Please sign in to comment.