Kokkos: allow c++17 starting with CUDA v11.0.0 (#25018)

This commit is contained in:
Martin Pokorny
2021-07-21 13:19:49 -06:00
committed by GitHub
parent 80592613ad
commit 4a4d1759f5

View File

@@ -197,7 +197,7 @@ class Kokkos(CMakePackage, CudaPackage, ROCmPackage):
variant("pic", default=False, description="Build position independent code")
# nvcc does not currently work with C++17 or C++20
conflicts("+cuda", when="std=17")
conflicts("+cuda", when="std=17 ^cuda@:10.99.99")
conflicts("+cuda", when="std=20")
variant('shared', default=True, description='Build shared libraries')