Skip to content

Commit

Permalink
Merge pull request #16438 from masterleinad/icpx_clang_like
Browse files Browse the repository at this point in the history
Treat ICPX as gcc-style compiler
  • Loading branch information
marcfehling committed Jan 19, 2024
2 parents 54eac45 + bab32d7 commit a0ef1c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmake/setup_compiler_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/setup_compiler_flags_gnu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a0ef1c9

Please sign in to comment.