1 |
commit: b4796e3f7a134820c39501afe6abcee8c9c9b701 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 26 03:36:55 2022 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 26 03:36:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4796e3f |
7 |
|
8 |
sci-libs/dealii: build with c++17 support the right way... |
9 |
|
10 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
11 |
|
12 |
sci-libs/dealii/dealii-9.4.0.ebuild | 6 +++++- |
13 |
sci-libs/dealii/dealii-9999.ebuild | 6 +++++- |
14 |
2 files changed, 10 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/sci-libs/dealii/dealii-9.4.0.ebuild b/sci-libs/dealii/dealii-9.4.0.ebuild |
17 |
index 2c2a3de2ae5c..b493d369767a 100644 |
18 |
--- a/sci-libs/dealii/dealii-9.4.0.ebuild |
19 |
+++ b/sci-libs/dealii/dealii-9.4.0.ebuild |
20 |
@@ -103,7 +103,6 @@ src_configure() { |
21 |
-DDEAL_II_WITH_ARPACK="$(usex arpack)" |
22 |
-DDEAL_II_WITH_CGAL="$(usex cgal)" |
23 |
-DDEAL_II_WITH_CUDA="$(usex cuda)" |
24 |
- -DDEAL_II_WITH_CXX17=ON |
25 |
-DDEAL_II_WITH_GINKGO="$(usex ginkgo)" |
26 |
-DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)" |
27 |
-DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)" |
28 |
@@ -148,6 +147,11 @@ src_configure() { |
29 |
append-cxxflags "-msse2" |
30 |
fi |
31 |
|
32 |
+ # Unconditionally enable strict C++17 standard. This is necessary for |
33 |
+ # USE=cgal and USE=kokkos and safe to set for all presently supported |
34 |
+ # compilers |
35 |
+ append-cxxflags "-std=c++17" |
36 |
+ |
37 |
cmake_src_configure |
38 |
} |
39 |
|
40 |
|
41 |
diff --git a/sci-libs/dealii/dealii-9999.ebuild b/sci-libs/dealii/dealii-9999.ebuild |
42 |
index 2c2a3de2ae5c..b493d369767a 100644 |
43 |
--- a/sci-libs/dealii/dealii-9999.ebuild |
44 |
+++ b/sci-libs/dealii/dealii-9999.ebuild |
45 |
@@ -103,7 +103,6 @@ src_configure() { |
46 |
-DDEAL_II_WITH_ARPACK="$(usex arpack)" |
47 |
-DDEAL_II_WITH_CGAL="$(usex cgal)" |
48 |
-DDEAL_II_WITH_CUDA="$(usex cuda)" |
49 |
- -DDEAL_II_WITH_CXX17=ON |
50 |
-DDEAL_II_WITH_GINKGO="$(usex ginkgo)" |
51 |
-DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)" |
52 |
-DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)" |
53 |
@@ -148,6 +147,11 @@ src_configure() { |
54 |
append-cxxflags "-msse2" |
55 |
fi |
56 |
|
57 |
+ # Unconditionally enable strict C++17 standard. This is necessary for |
58 |
+ # USE=cgal and USE=kokkos and safe to set for all presently supported |
59 |
+ # compilers |
60 |
+ append-cxxflags "-std=c++17" |
61 |
+ |
62 |
cmake_src_configure |
63 |
} |