From b7c1313764dfd8fed09ac18f9b38382136e2cded Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Fri, 30 Jan 2015 17:34:05 +0000 Subject: [PATCH] add ifcore lib to test a lapacke function in case ifort but not blas mkl --- cmake_modules/morse/find/FindLAPACKE.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake_modules/morse/find/FindLAPACKE.cmake b/cmake_modules/morse/find/FindLAPACKE.cmake index 03c5ad454..78919ae1f 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}") -- GitLab