summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaip <baip@users.noreply.github.com>2017-11-08 15:04:26 -0600
committerChristoph Junghans <christoph.junghans@gmail.com>2017-11-08 14:04:26 -0700
commit4273ebac3ca2d76e257d48120e9a228b78138bf9 (patch)
treea98a7430fae394452c50817dd7cc1365f942f0f8
parent17b9a479b63216535adc443af4fa2d2996edb943 (diff)
downloadspack-4273ebac3ca2d76e257d48120e9a228b78138bf9.tar.gz
spack-4273ebac3ca2d76e257d48120e9a228b78138bf9.tar.bz2
spack-4273ebac3ca2d76e257d48120e9a228b78138bf9.tar.xz
spack-4273ebac3ca2d76e257d48120e9a228b78138bf9.zip
libxsmm: add libs property (#6193)
-rw-r--r--var/spack/repos/builtin/packages/libxsmm/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libxsmm/package.py b/var/spack/repos/builtin/packages/libxsmm/package.py
index f6da7a1212..ec1fa2f0bc 100644
--- a/var/spack/repos/builtin/packages/libxsmm/package.py
+++ b/var/spack/repos/builtin/packages/libxsmm/package.py
@@ -61,6 +61,15 @@ class Libxsmm(Package):
variant('header-only', default=False,
description='Produce header-only installation')
+ @property
+ def libs(self):
+ result = find_libraries(['libxsmm', 'libxsmmf'], root=self.prefix,
+ recurse=True)
+ if len(result) == 0:
+ result = find_libraries(['libxsmm', 'libxsmmf'], root=self.prefix,
+ shared=False, recurse=True)
+ return result
+
def patch(self):
kwargs = {'ignore_absent': False, 'backup': False, 'string': True}
makefile = FileFilter('Makefile.inc')