Make ifort on Windows create lowercase symbols with appended underscore

tentative fix for #2472
This commit is contained in:
Martin Kroeker 2020-03-20 01:08:10 +01:00 committed by GitHub
parent c0da205412
commit 6d54c94760
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 ()
endif () endif ()
if (${F_COMPILER} STREQUAL "INTEL") if (${F_COMPILER} STREQUAL "IFORT")
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 ()