From a864a85ba28f767c192ba5f37f8e8faaa1e001cb Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Fri, 29 Mar 2024 17:40:56 -0500 Subject: [PATCH] changed to if string contains instead (#4286) --- config/cmake/HDF5UseFortran.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cmake/HDF5UseFortran.cmake b/config/cmake/HDF5UseFortran.cmake index b4172eace4b..98fa75ecfc9 100644 --- a/config/cmake/HDF5UseFortran.cmake +++ b/config/cmake/HDF5UseFortran.cmake @@ -219,7 +219,7 @@ if (${HAVE_ISO_FORTRAN_ENV}) set(CMAKE_REQUIRED_QUIET TRUE) set(save_CMAKE_Fortran_FLAGS ${CMAKE_Fortran_FLAGS}) - if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel") + if (CMAKE_Fortran_COMPILER_ID MATCHES "Intel") set(CMAKE_Fortran_FLAGS "-warn error") endif ()