Add support for C++23 in pika and pika-algorithms packages (#40078)

* Add C++23 support for pika

* Add C++23 support for pika-algorithms as well
This commit is contained in:
Auriane R 2023-09-20 17:28:25 +02:00 committed by GitHub
parent c4a53cf376
commit a7ee72708a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -25,7 +25,7 @@ class PikaAlgorithms(CMakePackage):
generator("ninja")
map_cxxstd = lambda cxxstd: "2a" if cxxstd == "20" else cxxstd
cxxstds = ("17", "20")
cxxstds = ("17", "20", "23")
variant(
"cxxstd",
default="17",
@ -39,6 +39,7 @@ class PikaAlgorithms(CMakePackage):
conflicts("%gcc@:8")
conflicts("%clang@:8")
conflicts("cxxstd=23", when="^cmake@:3.20.2")
# Other dependencies
depends_on("boost@1.71:")

View file

@ -41,7 +41,7 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
generator("ninja")
map_cxxstd = lambda cxxstd: "2a" if cxxstd == "20" else cxxstd
cxxstds = ("17", "20")
cxxstds = ("17", "20", "23")
variant(
"cxxstd",
default="17",
@ -88,6 +88,7 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
conflicts("%gcc@:8", when="@0.2:")
conflicts("%clang@:8", when="@0.2:")
conflicts("+stdexec", when="cxxstd=17")
conflicts("cxxstd=23", when="^cmake@:3.20.2")
# Other dependencies
depends_on("boost@1.71:")