Browse Source

Add options for Intel oneAPI 2025.0 ifx on Windows

tags/v0.3.29
Martin Kroeker GitHub 9 months ago
parent
commit
32319a33ac
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      cmake/f_check.cmake

+ 4
- 2
cmake/f_check.cmake View File

@@ -45,13 +45,15 @@ if (NOT ONLY_CBLAS)


# TODO: detect whether underscore needed, set #defines and BU appropriately - use try_compile # TODO: detect whether underscore needed, set #defines and BU appropriately - use try_compile
# TODO: set FEXTRALIB flags a la f_check? # TODO: set FEXTRALIB flags a la f_check?
if (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND ${CMAKE_Fortran_COMPILER_ID} MATCHES "IntelLLVM"))
set(BU "_") set(BU "_")
file(APPEND ${TARGET_CONF_TEMP} file(APPEND ${TARGET_CONF_TEMP}
"#define BUNDERSCORE _\n" "#define BUNDERSCORE _\n"
"#define NEEDBUNDERSCORE 1\n" "#define NEEDBUNDERSCORE 1\n"
"#define NEED2UNDERSCORES 0\n") "#define NEED2UNDERSCORES 0\n")

else ()
set (FCOMMON_OPT "${FCOMMON_OPT} /fp:precise /recursive /names:lowercase /assume:nounderscore")
endif()
else () else ()


#When we only build CBLAS, we set NOFORTRAN=2 #When we only build CBLAS, we set NOFORTRAN=2


Loading…
Cancel
Save