Skip to content

Commit fbf594b

Browse files
authored
Guard against empty CMAKE_Fortran_COMPILER_ID
1 parent e6fd629 commit fbf594b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/f_check.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if (NOT ONLY_CBLAS)
4545

4646
# TODO: detect whether underscore needed, set #defines and BU appropriately - use try_compile
4747
# TODO: set FEXTRALIB flags a la f_check?
48-
if (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND ${CMAKE_Fortran_COMPILER_ID} MATCHES "IntelLLVM"))
48+
if (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND x${CMAKE_Fortran_COMPILER_ID} MATCHES "IntelLLVM"))
4949
set(BU "_")
5050
file(APPEND ${TARGET_CONF_TEMP}
5151
"#define BUNDERSCORE _\n"

0 commit comments

Comments
 (0)