From 58e527935c1e078d655f0c1330223c14cb0aa587 Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Thu, 4 May 2023 00:43:31 -0400 Subject: [PATCH] cabana: Add optional silo build (#37393) --- var/spack/repos/builtin/packages/cabana/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/cabana/package.py b/var/spack/repos/builtin/packages/cabana/package.py index 6607c02775..cebc2d4aaf 100644 --- a/var/spack/repos/builtin/packages/cabana/package.py +++ b/var/spack/repos/builtin/packages/cabana/package.py @@ -36,6 +36,7 @@ class Cabana(CMakePackage): variant("arborx", default=False, description="Build with ArborX support") variant("heffte", default=False, description="Build with heFFTe support") variant("hypre", default=False, description="Build with HYPRE support") + variant("silo", default=False, description="Build with SILO support") variant("cajita", default=False, description="Build Cajita subpackage") variant("testing", default=False, description="Build unit tests") variant("examples", default=False, description="Build tutorial examples") @@ -62,6 +63,7 @@ class Cabana(CMakePackage): # compatibilty to later minor versions. depends_on("heffte@2.0.0", when="@0.4.0+heffte") depends_on("heffte@2.1.0", when="@0.5.0:+heffte") + depends_on("silo", when="@0.5.0:+silo") depends_on("mpi", when="+mpi") conflicts("+cajita ~mpi") @@ -73,7 +75,7 @@ def cmake_args(self): options = [self.define_from_variant("BUILD_SHARED_LIBS", "shared")] enable = ["CAJITA", "TESTING", "EXAMPLES", "PERFORMANCE_TESTING"] - require = ["ARBORX", "HEFFTE", "HYPRE"] + require = ["ARBORX", "HEFFTE", "HYPRE", "SILO"] # These variables were removed in 0.3.0 (where backends are # automatically used from Kokkos)