Skip to content

Modules/FindBLAS.cmake: respect MKLROOT if available (fixes #19052)

Mario Emmenlauer requested to merge emmenlau/cmake:master into master

This PR adds functionality to FindBLAS.cmake to prefer the MKLROOT variable or MKLROOT environment variable over the dynamic library path environment variable, when searching for the Intel MKL library. Since MKLROOT should always be set when using the MKL, and since the dynamic library path environment variable is difficult to use with the Intel MKL library, this PR should help in almost all cases. Fixes issue #19052 (closed) for me on Ubuntu Linux 16.04 and 18.04, CentOS Linux 7.6, MSVC 2015 and MSVC 2017 and MacOSX 10.12.

Merge request reports