commit: b4796e3f7a134820c39501afe6abcee8c9c9b701
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 26 03:36:55 2022 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Sun Jun 26 03:36:55 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4796e3f
sci-libs/dealii: build with c++17 support the right way...
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
sci-libs/dealii/dealii-9.4.0.ebuild | 6 +++++-
sci-libs/dealii/dealii-9999.ebuild | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/sci-libs/dealii/dealii-9.4.0.ebuild
b/sci-libs/dealii/dealii-9.4.0.ebuild
index 2c2a3de2ae5c..b493d369767a 100644
--- a/sci-libs/dealii/dealii-9.4.0.ebuild
+++ b/sci-libs/dealii/dealii-9.4.0.ebuild
@@ -103,7 +103,6 @@ src_configure() {
-DDEAL_II_WITH_ARPACK="$(usex arpack)"
-DDEAL_II_WITH_CGAL="$(usex cgal)"
-DDEAL_II_WITH_CUDA="$(usex cuda)"
- -DDEAL_II_WITH_CXX17=ON
-DDEAL_II_WITH_GINKGO="$(usex ginkgo)"
-DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)"
-DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)"
@@ -148,6 +147,11 @@ src_configure() {
append-cxxflags "-msse2"
fi
+ # Unconditionally enable strict C++17 standard. This is necessary for
+ # USE=cgal and USE=kokkos and safe to set for all presently supported
+ # compilers
+ append-cxxflags "-std=c++17"
+
cmake_src_configure
}
diff --git a/sci-libs/dealii/dealii-9999.ebuild
b/sci-libs/dealii/dealii-9999.ebuild
index 2c2a3de2ae5c..b493d369767a 100644
--- a/sci-libs/dealii/dealii-9999.ebuild
+++ b/sci-libs/dealii/dealii-9999.ebuild
@@ -103,7 +103,6 @@ src_configure() {
-DDEAL_II_WITH_ARPACK="$(usex arpack)"
-DDEAL_II_WITH_CGAL="$(usex cgal)"
-DDEAL_II_WITH_CUDA="$(usex cuda)"
- -DDEAL_II_WITH_CXX17=ON
-DDEAL_II_WITH_GINKGO="$(usex ginkgo)"
-DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)"
-DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)"
@@ -148,6 +147,11 @@ src_configure() {
append-cxxflags "-msse2"
fi
+ # Unconditionally enable strict C++17 standard. This is necessary for
+ # USE=cgal and USE=kokkos and safe to set for all presently supported
+ # compilers
+ append-cxxflags "-std=c++17"
+
cmake_src_configure
}