From fbf594b62f4d1ee015a03a5df6e58fe796e63c98 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 24 Dec 2024 13:34:33 +0100 Subject: [PATCH] Guard against empty CMAKE_Fortran_COMPILER_ID --- cmake/f_check.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/f_check.cmake b/cmake/f_check.cmake index dc0f5e0ac5..3f713807ea 100644 --- a/cmake/f_check.cmake +++ b/cmake/f_check.cmake @@ -45,7 +45,7 @@ if (NOT ONLY_CBLAS) # TODO: detect whether underscore needed, set #defines and BU appropriately - use try_compile # 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 "_") file(APPEND ${TARGET_CONF_TEMP} "#define BUNDERSCORE _\n"