From bab32d7afb1d1fc393245ed50432eece191051e7 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 9 Jan 2024 14:21:39 -0500 Subject: [PATCH] Treat ICPX as gcc-style compiler --- cmake/setup_compiler_flags.cmake | 3 ++- cmake/setup_compiler_flags_gnu.cmake | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/setup_compiler_flags.cmake b/cmake/setup_compiler_flags.cmake index b2acd57492..53163215b4 100644 --- a/cmake/setup_compiler_flags.cmake +++ b/cmake/setup_compiler_flags.cmake @@ -98,7 +98,8 @@ endforeach() ######################################################################## if( CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR - CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) + CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR + CMAKE_CXX_COMPILER_ID MATCHES "IntelLLVM") # # General setup for GCC and compilers sufficiently close to GCC: # diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index ea945ce9bf..dbc82ade86 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -96,7 +96,7 @@ enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-literal-suffix") # enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-psabi") -if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") +if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "IntelLLVM") # Enable warnings for conversion from real types to integer types. # The warning is too noisy in gcc and therefore only enabled for clang. enable_if_supported(DEAL_II_WARNING_FLAGS "-Wfloat-conversion") -- 2.39.5