summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMikael Simberg <mikael.simberg@iki.fi>2024-10-18 15:18:34 +0200
committerGitHub <noreply@github.com>2024-10-18 15:18:34 +0200
commit49a8e8458852ffbca461506a857a382c2a939006 (patch)
tree37c25782f2f65f05ce2d718317883f425985a9ff /var
parentd36452cf4e70fa1da8b9db43921850872b82ced9 (diff)
downloadspack-49a8e8458852ffbca461506a857a382c2a939006.tar.gz
spack-49a8e8458852ffbca461506a857a382c2a939006.tar.bz2
spack-49a8e8458852ffbca461506a857a382c2a939006.tar.xz
spack-49a8e8458852ffbca461506a857a382c2a939006.zip
pika: Add minimum CMake version requirement when using CUDA and C++20 (#47077)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pika/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pika/package.py b/var/spack/repos/builtin/packages/pika/package.py
index b67fc4c64c..f5fe4b9727 100644
--- a/var/spack/repos/builtin/packages/pika/package.py
+++ b/var/spack/repos/builtin/packages/pika/package.py
@@ -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")