]> https://gitweb.dealii.org/ - candi.git/commitdiff
fix clang 14 on OSX compilation with Trilinos 14 350/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 24 May 2024 21:13:56 +0000 (17:13 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sat, 25 May 2024 21:59:12 +0000 (17:59 -0400)
fix

deal.II-toolchain/platforms/supported/macos.platform

index bbf12c573a6c74af22366041a6779ef3a66ffc4a..888f6005d6bee22bc5dd5a2bf7ff93eee221191e 100644 (file)
@@ -54,4 +54,7 @@ if [ "$(machine)" = "arm64e" ]; then
   # disable this for now.
   TRILINOS_WITH_SEACAS=OFF
 
+  # Trilinos defaults to c++17 while deal.II 9.5 defaults to c++14 with clang 14,
+  # which then fails to compile when including Kokkos coming from Trilinos:
+  DEAL_II_CONFOPTS="-DCMAKE_CXX_STANDARD=17 ${DEAL_II_CONFOPTS}"
 fi

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.