summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-05-23 20:28:21 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-05-23 13:28:21 -0500
commit0ea8c4f3b2d1bdb5ff7ab8e606c42355a075ede0 (patch)
tree5faabdbcff01118c49cc5aed37b6a21b1084c0e8 /var
parent13a1575452805a025550df4a40b115cb017ce222 (diff)
downloadspack-0ea8c4f3b2d1bdb5ff7ab8e606c42355a075ede0.tar.gz
spack-0ea8c4f3b2d1bdb5ff7ab8e606c42355a075ede0.tar.bz2
spack-0ea8c4f3b2d1bdb5ff7ab8e606c42355a075ede0.tar.xz
spack-0ea8c4f3b2d1bdb5ff7ab8e606c42355a075ede0.zip
mvapich2: added a proper libs attribute (#8253)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mvapich2/package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mvapich2/package.py b/var/spack/repos/builtin/packages/mvapich2/package.py
index bd453647e5..ffa2f6ea02 100644
--- a/var/spack/repos/builtin/packages/mvapich2/package.py
+++ b/var/spack/repos/builtin/packages/mvapich2/package.py
@@ -125,6 +125,18 @@ class Mvapich2(AutotoolsPackage):
)
@property
+ def libs(self):
+ query_parameters = self.spec.last_query.extra_parameters
+ libraries = ['libmpi']
+
+ if 'cxx' in query_parameters:
+ libraries = ['libmpicxx'] + libraries
+
+ return find_libraries(
+ libraries, root=self.prefix, shared=True, recursive=True
+ )
+
+ @property
def process_manager_options(self):
spec = self.spec