From: Daniel Arndt Date: Tue, 9 Jan 2024 19:21:39 +0000 (-0500) Subject: Treat ICPX as gcc-style compiler X-Git-Tag: relicensing~143^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16438%2Fhead;p=dealii.git Treat ICPX as gcc-style compiler --- 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")