diff --git a/CMakeLists.txt b/CMakeLists.txt index 6de45379662cae1b10d4de84064664f6bc65a05f..44a647a61ce0b9dd112db0f6c2207f5219b6a116 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,6 +225,11 @@ if(ENABLE_BLAS_LAPACK) endif(HAVE_64BIT_SIZE_T) set(MKL_LIBS_REQUIRED mkl_gf_lp64 iomp5 mkl_gnu_thread mkl_core guide pthread) find_all_libraries(LAPACK_LIBRARIES MKL_LIBS_REQUIRED "" ${MKL_PATH}) + if(NOT LAPACK_LIBRARIES) + #match lapack 9.0 on 64bit + set(MKL_LIBS_REQUIRED mkl_lapack mkl_em64t guide) + find_all_libraries(LAPACK_LIBRARIES MKL_LIBS_REQUIRED "" ${MKL_PATH}) + endif(NOT LAPACK_LIBRARIES) if(LAPACK_LIBRARIES) set_config_option(HAVE_BLAS "Blas(IntelMKL)") set_config_option(HAVE_LAPACK "Lapack(IntelMKL)")