summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2018-02-14 00:21:13 -0800
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-02-14 09:21:13 +0100
commite5bc6e7056c6be30945dff8c8b624cc3f7716d57 (patch)
treecf902d5e01bf53f958447326c6b5729b3e6714e4 /var
parentcb702ebcb1ed6b33e29c4c3eb78fa8d4664db19e (diff)
downloadspack-e5bc6e7056c6be30945dff8c8b624cc3f7716d57.tar.gz
spack-e5bc6e7056c6be30945dff8c8b624cc3f7716d57.tar.bz2
spack-e5bc6e7056c6be30945dff8c8b624cc3f7716d57.tar.xz
spack-e5bc6e7056c6be30945dff8c8b624cc3f7716d57.zip
hypre: add libs method (#7234)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hypre/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hypre/package.py b/var/spack/repos/builtin/packages/hypre/package.py
index d6b9645a4c..d17da61a1b 100644
--- a/var/spack/repos/builtin/packages/hypre/package.py
+++ b/var/spack/repos/builtin/packages/hypre/package.py
@@ -109,3 +109,9 @@ class Hypre(Package):
sstruct('-in', 'test/sstruct.in.default', '-solver', '40',
'-rhsone')
make("install")
+
+ @property
+ def libs(self):
+ is_shared = self.spec.satisfies('+shared')
+ return find_libraries('libHYPRE', root=self.prefix,
+ shared=is_shared, recursive=True)