From e47ceefc433da2f7d8373b8f7e3dbb23f093adb3 Mon Sep 17 00:00:00 2001
From: "Adam J. Stewart" <ajstewart426@gmail.com>
Date: Thu, 2 Nov 2017 02:16:43 -0500
Subject: sundials+hypre depends on hypre (#6075)

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

(limited to 'var')

diff --git a/var/spack/repos/builtin/packages/sundials/package.py b/var/spack/repos/builtin/packages/sundials/package.py
index 2552eee652..57165e8f5d 100644
--- a/var/spack/repos/builtin/packages/sundials/package.py
+++ b/var/spack/repos/builtin/packages/sundials/package.py
@@ -183,8 +183,10 @@ class Sundials(CMakePackage):
     depends_on('petsc+double~complex', when='+petsc precision=double')
 
     # Require that external libraries built with the same index type
+    depends_on('hypre', when='+hypre')
     depends_on('hypre~int64', when='+hypre ~int64')
     depends_on('hypre+int64', when='+hypre +int64')
+    depends_on('petsc', when='+petsc')
     depends_on('petsc~int64', when='+petsc ~int64')
     depends_on('petsc+int64', when='+petsc +int64')
 
-- 
cgit v1.2.3-70-g09d2