Browse Source

Guard against empty CMAKE_Fortran_COMPILER_ID

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

+ 1
- 1
cmake/f_check.cmake View File

@@ -45,7 +45,7 @@ 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"))
if (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND x${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"


Loading…
Cancel
Save