pika: Add minimum CMake version requirement when using CUDA and C++20 (#47077)

This commit is contained in:
Mikael Simberg
2024-10-18 15:18:34 +02:00
committed by GitHub
parent d36452cf4e
commit 49a8e84588

View File

@@ -117,6 +117,8 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
conflicts("%clang@:8", when="@0.2:")
conflicts("+stdexec", when="cxxstd=17")
conflicts("cxxstd=23", when="^cmake@:3.20.2")
conflicts("cxxstd=20", when="+cuda ^cmake@:3.25.1")
conflicts("cxxstd=23", when="+cuda")
# nvcc version <= 11 does not support C++20 and newer
for cxxstd in filter(lambda x: x != "17", cxxstds):
requires("%nvhpc", when=f"cxxstd={cxxstd} ^cuda@:11")