Commit b7c13137 authored by PRUVOST Florent's avatar PRUVOST Florent

add ifcore lib to test a lapacke function in case ifort but not blas mkl

parent 8e21f400
......@@ -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}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment