FindMatlab: Refactoring and minor fixes
Collection of code cleanup and minor fixes I stumbled upon the last few weeks. Relevant changes include:
- Eliminate code duplication
- Replace manual
-pthread
check withfind_package(Threads)
- Do not query 32-bit registry on 64-bit systems if 64-bit view was requested
I may split out some commits into separate MRs if needed.
Edited by Hermann von Kleist