Add support for Intel Fortran compilers.

Port changes from upstream Reference-LAPACK.
This commit is contained in:
Markus Mützel 2022-03-25 13:37:15 +01:00
parent 8fe3555792
commit aeb561d234
1 changed files with 9 additions and 1 deletions

View File

@ -67,8 +67,16 @@ if (${F_COMPILER} STREQUAL "GFORTRAN")
if (BINARY64) if (BINARY64)
set(FCOMMON_OPT "${FCOMMON_OPT} -m64") set(FCOMMON_OPT "${FCOMMON_OPT} -m64")
if (INTERFACE64) if (INTERFACE64)
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
if (WIN32)
set(FCOMMON_OPT "${FCOMMON_OPT} /integer-size:64")
else ()
set(FCOMMON_OPT "${FCOMMON_OPT} -integer-size 64")
endif ()
else ()
set(FCOMMON_OPT "${FCOMMON_OPT} -fdefault-integer-8") set(FCOMMON_OPT "${FCOMMON_OPT} -fdefault-integer-8")
endif () endif ()
endif ()
else () else ()
set(FCOMMON_OPT "${FCOMMON_OPT} -m32") set(FCOMMON_OPT "${FCOMMON_OPT} -m32")
endif () endif ()