Skip to content

Find{BLAS,LAPACK}: Restore support for Intel MKL

Brad King requested to merge brad.king/cmake:FindBLAS-FindLAPACK into master

Refactoring in !5954 (merged) was done in order to support calling find_library on the dependencies as well as the candidate libraries. However, it broke a few things:

  • Intel MKL's BLAS/LAPACK are no longer found. We specify their dependencies using -l... flags, so we should not try to use find_library for them.

  • The dependencies are repeated because we accumulate them in the find_library search loop and then append them at the end too.

Revert the incorrect part of the refactoring. Retain the flags part needed for the Fujitsu vendor.

Add a test covering Intel MKL. Follow up with additional refactoring and cleanup to make the code more readable.

Fixes: #22056 (closed)

Merge request reports