celeritas: add patch when using geant4@10 (#38592)

This commit is contained in:
Seth R. Johnson 2023-06-28 09:07:30 -04:00 committed by GitHub
parent 78f33bc002
commit 640ccf2ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,12 @@ class Celeritas(CMakePackage, CudaPackage, ROCmPackage):
conflicts("+rocm", when="+vecgeom", msg="HIP support is only available with ORANGE")
conflicts("^vecgeom+shared@1.2.0", when="+vecgeom +cuda")
patch(
"https://patch-diff.githubusercontent.com/raw/celeritas-project/celeritas/pull/830.patch?full_index=1",
sha256="9ac1929a95170b497aaac76f62146f313e4b31aea7271acac354270550d0d685",
when="@0.3.0 ^geant4@10",
)
def cmake_args(self):
define = self.define
from_variant = self.define_from_variant