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:
parent
c4a53cf376
commit
a7ee72708a
2 changed files with 4 additions and 2 deletions
|
@ -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:")
|
||||
|
|
|
@ -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:")
|
||||
|
|
Loading…
Reference in a new issue