Skip to content

FindMatlab: Fix version detection for MCR >= 9.10

Tom M. requested to merge derselbst/cmake:mcr911 into master

Recent MCR have the following VersionInfo.xml:

<version>9.11.0.1837725</version>

Currently, CMake reports this as:

[MATLAB] Current version is 9.1 located C:/Program Files/MATLAB/MATLAB Runtime/v911

Which is bad, because when explicitly asking CMake for version 9.11, it would erroneously fail, as it believes it found version 9.1.

This PR changes the regex to allow multiple digits per version number, making CMake correctly recognize recent MCR versions and even a possible upcoming version 10.x.

Backport: release
Topic-rename: FindMatlab-mcr911

Edited by Brad King

Merge request reports