FindBLAS: Do not statically link against iomp5 in the case of Intel MKL
Simpler alternatives are:
-
-liomp5
, which may use static library, i.e., when-Bstatic
is given -
-l:libiomp5.so
, which requires GNU ld 2.18 or later, as per the docs -Wl,--push-state,-Bdynamic -liomp5 -Wl,--pop-state
In any cases, BLAS_mkl_OMP
must not be appended to BLAS_SEARCH_LIBS
.
Fixes: #21811
Topic-rename: FindBLAS-mkl-omp
Edited by Brad King