FindMatlab.cmake can't find Matlab Runtime
Hi,
I had a problem with FindMatlab not finding the MCR on Windows, caused by various bugs in the find script:
- registry command lacked " around the path, so space in "Matlab Runtime" caused problems
- Old MCR Releases (Don't know exactly how old, R2012b at least) are in the path "Matlab Compiler Runtime" in the registry and on the harddisk
- FindMatlab always requires libmx and libmex, which are not part of the MCR (could someone check if this is the case for other OS?)
Here's the patch fixing those issues: FindMatlab.diff
For testing the line below and an installed MCR 2012b should be enough: find_package(Matlab 8.0 EXACT REQUIRED)