]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Treat ICPX as gcc-style compiler 16438/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 9 Jan 2024 19:21:39 +0000 (14:21 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 9 Jan 2024 20:28:54 +0000 (15:28 -0500)
cmake/setup_compiler_flags.cmake
cmake/setup_compiler_flags_gnu.cmake

index b2acd57492a1772d1739c9a7bd68f0d63637de03..53163215b4f078430cab028b720185b07d83179a 100644 (file)
@@ -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:
   #
index ea945ce9bf0095f44d2f4d69ca8b99f2138df8a1..dbc82ade86abc10c27ff69e5292f3d340edb32b0 100644 (file)
@@ -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")

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.