summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2018-02-14 01:40:56 -0800
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-02-14 10:40:56 +0100
commita7b8d26fa784a8731ef382ca769384da8c2b5187 (patch)
treeb7ac1ac2456edd8afd1e66cc05176f43f4408f44 /var
parentf36e83fa5fd64c1425b6b5b074571193f024d77e (diff)
downloadspack-a7b8d26fa784a8731ef382ca769384da8c2b5187.tar.gz
spack-a7b8d26fa784a8731ef382ca769384da8c2b5187.tar.bz2
spack-a7b8d26fa784a8731ef382ca769384da8c2b5187.tar.xz
spack-a7b8d26fa784a8731ef382ca769384da8c2b5187.zip
xbraid: add libs method (#7233)
XBraid installs `libbraid.a`, but the default `libs` method implementation will search for `libxbraid`, which does not exist. This commit fixes the behavior of the `libs` method for the `xbraid` package by overriding package's `libs` method.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xbraid/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xbraid/package.py b/var/spack/repos/builtin/packages/xbraid/package.py
index 05032ce128..d1d5fa2fed 100644
--- a/var/spack/repos/builtin/packages/xbraid/package.py
+++ b/var/spack/repos/builtin/packages/xbraid/package.py
@@ -66,3 +66,8 @@ class Xbraid(MakefilePackage):
install_tree('test', prefix.share.test)
install_tree('user_utils', prefix.share.user_utils)
install_tree('docs', prefix.share.docs)
+
+ @property
+ def libs(self):
+ return find_libraries('libbraid', root=self.prefix,
+ shared=False, recursive=True)