Merge pull request #2519 from martin-frbg/issue2472

Fix cmake compilation with ifort on Windows
This commit is contained in:
Martin Kroeker
2020-03-20 22:57:44 +01:00
committed by GitHub

View File

@@ -76,8 +76,11 @@ if (${F_COMPILER} STREQUAL "GFORTRAN")
endif ()
endif ()
if (${F_COMPILER} STREQUAL "INTEL")
if (${F_COMPILER} STREQUAL "IFORT")
set(CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_INTEL")
if (MSVC)
set(FCOMMON_OPT "${FCOMMON_OPT} -names:lowercase -assume:underscore")
endif ()
if (INTERFACE64)
set(FCOMMON_OPT "${FCOMMON_OPT} -i8")
endif ()