Skip to content

Commit 6d54c94

Browse files
authored
Make ifort on Windows create lowercase symbols with appended underscore
tentative fix for #2472
1 parent c0da205 commit 6d54c94

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmake/fc.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ if (${F_COMPILER} STREQUAL "GFORTRAN")
7676
endif ()
7777
endif ()
7878

79-
if (${F_COMPILER} STREQUAL "INTEL")
79+
if (${F_COMPILER} STREQUAL "IFORT")
8080
set(CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_INTEL")
81+
if (MSVC)
82+
set(FCOMMON_OPT "${FCOMMON_OPT} -names:lowercase -assume:underscore")
83+
endif ()
8184
if (INTERFACE64)
8285
set(FCOMMON_OPT "${FCOMMON_OPT} -i8")
8386
endif ()

0 commit comments

Comments
 (0)