FindMatlab: find_package with exact version broken
Follow-up of !9148 (merged).
Now that FindMatlab obtains the full version number from an installation, find_package(Matlab 9.9 EXACT REQUIRED)
fails to recognize version '9.9.0.2037887' to be an exact match of version '9.9.0.2037887', breaking existing CMake code.
I could provide two MRs addressing this issue:
- Fix the regression for 3.28.x by doing an exact match of the major and minor version number, similar to the recent fixes concerning the registry lookup
- Refactor the version matching using find_package_check_version for version 3.29.