Skip to content

Commit aeb561d

Browse files
committed
Add support for Intel Fortran compilers.
Port changes from upstream Reference-LAPACK.
1 parent 8fe3555 commit aeb561d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cmake/fc.cmake

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,15 @@ if (${F_COMPILER} STREQUAL "GFORTRAN")
6767
if (BINARY64)
6868
set(FCOMMON_OPT "${FCOMMON_OPT} -m64")
6969
if (INTERFACE64)
70-
set(FCOMMON_OPT "${FCOMMON_OPT} -fdefault-integer-8")
70+
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
71+
if (WIN32)
72+
set(FCOMMON_OPT "${FCOMMON_OPT} /integer-size:64")
73+
else ()
74+
set(FCOMMON_OPT "${FCOMMON_OPT} -integer-size 64")
75+
endif ()
76+
else ()
77+
set(FCOMMON_OPT "${FCOMMON_OPT} -fdefault-integer-8")
78+
endif ()
7179
endif ()
7280
else ()
7381
set(FCOMMON_OPT "${FCOMMON_OPT} -m32")

0 commit comments

Comments
 (0)