diff --git a/cmake_modules/morse/find/FindLAPACKE.cmake b/cmake_modules/morse/find/FindLAPACKE.cmake index 03c5ad454fb79f0d9944918fcca3c328e5b992e3..78919ae1f405805787c234f376c71c36c4042876 100644 --- a/cmake_modules/morse/find/FindLAPACKE.cmake +++ b/cmake_modules/morse/find/FindLAPACKE.cmake @@ -238,6 +238,8 @@ if (LAPACK_FOUND) set(CMAKE_REQUIRED_LIBRARIES "${LAPACKE_LIBRARIES};${LAPACK_LIBRARIES};-lm") if (CMAKE_Fortran_COMPILER MATCHES ".+gfortran.*") list(APPEND CMAKE_REQUIRED_LIBRARIES "-lgfortran") + elseif (CMAKE_Fortran_COMPILER MATCHES ".+ifort.*") + list(APPEND CMAKE_REQUIRED_LIBRARIES "-lifcore") endif() set(CMAKE_REQUIRED_FLAGS "-L${LAPACKE_LIBRARY_DIRS} -L${LAPACK_LIBRARY_DIRS}")