Skip to content

CMake reports wrong version for Matlab Compiler Runtime (MCR) >= 9.10

Tom M. requested to merge 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.

Merge request reports