diff --git a/scripts/spack/packages/serac/package.py b/scripts/spack/packages/serac/package.py index ba2eacada..9e9e1ac6b 100644 --- a/scripts/spack/packages/serac/package.py +++ b/scripts/spack/packages/serac/package.py @@ -92,7 +92,7 @@ class Serac(CachedCMakePackage, CudaPackage): # NOTE: Sundials must be built static to prevent the following runtime error: # "error while loading shared libraries: libsundials_nvecserial.so.6: # cannot open shared object file: No such file or directory" - depends_on("sundials+hypre~monitoring~examples~examples-install+static", + depends_on("sundials+hypre~monitoring~examples~examples-install+static~shared", when="+sundials") depends_on("sundials+asan", when="+sundials+asan")