From 49a8e8458852ffbca461506a857a382c2a939006 Mon Sep 17 00:00:00 2001
From: Mikael Simberg <mikael.simberg@iki.fi>
Date: Fri, 18 Oct 2024 15:18:34 +0200
Subject: pika: Add minimum CMake version requirement when using CUDA and C++20
 (#47077)

---
 var/spack/repos/builtin/packages/pika/package.py | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'var')

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")
-- 
cgit v1.2.3-70-g09d2