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
commit 7ae737e04c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

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 ()