ifort and pgfort need "recursive" for compiling LAPACK as well

as shown in Reference-LAPACK issue 401 (their PR 403)
This commit is contained in:
Martin Kroeker 2020-04-01 15:38:07 +02:00 committed by GitHub
parent a986d42ea6
commit a05243d0f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -76,14 +76,12 @@ if (${F_COMPILER} STREQUAL "GFORTRAN")
endif () endif ()
endif () endif ()
if (${F_COMPILER} STREQUAL "IFORT") if (${F_COMPILER} STREQUAL "INTEL")
set(CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_INTEL") set(CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_INTEL")
if (MSVC)
set(FCOMMON_OPT "${FCOMMON_OPT} -names:lowercase -assume:underscore")
endif ()
if (INTERFACE64) if (INTERFACE64)
set(FCOMMON_OPT "${FCOMMON_OPT} -i8") set(FCOMMON_OPT "${FCOMMON_OPT} -i8")
endif () endif ()
set(FCOMMON_OPT "${FCOMMON_OPT} -recursive")
if (USE_OPENMP) if (USE_OPENMP)
set(FCOMMON_OPT "${FCOMMON_OPT} -openmp") set(FCOMMON_OPT "${FCOMMON_OPT} -openmp")
endif () endif ()
@ -123,6 +121,7 @@ if (${F_COMPILER} STREQUAL "PGI")
else () else ()
set(FCOMMON_OPT "${FCOMMON_OPT} -tp p7") set(FCOMMON_OPT "${FCOMMON_OPT} -tp p7")
endif () endif ()
set(FCOMMON_OPT "${FCOMMON_OPT} -Mrecursive")
if (USE_OPENMP) if (USE_OPENMP)
set(FCOMMON_OPT "${FCOMMON_OPT} -mp") set(FCOMMON_OPT "${FCOMMON_OPT} -mp")
endif () endif ()