kokkos: fix c++20 constraint (#37555)

This commit is contained in:
Martin Pokorny
2023-06-12 07:07:03 -06:00
committed by GitHub
parent 8c0d947114
commit e43444cbb6

View File

@@ -207,7 +207,7 @@ class Kokkos(CMakePackage, CudaPackage, ROCmPackage):
conflicts("std=14", when="@4.0:")
conflicts("+cuda", when="std=17 ^cuda@:10")
conflicts("+cuda", when="std=20 ^cuda@:12")
conflicts("+cuda", when="std=20 ^cuda@:11")
# SYCL and OpenMPTarget require C++17 or higher
for stdver in stds[: stds.index("17")]: