mvapich2: added a proper libs attribute (#8253)
This commit is contained in:
parent
13a1575452
commit
0ea8c4f3b2
@ -124,6 +124,18 @@ class Mvapich2(AutotoolsPackage):
|
|||||||
'mpicc', 'mpicxx', 'mpif77', 'mpif90', 'mpifort', relative_root='bin'
|
'mpicc', 'mpicxx', 'mpif77', 'mpif90', 'mpifort', relative_root='bin'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@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
|
@property
|
||||||
def process_manager_options(self):
|
def process_manager_options(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
Loading…
Reference in New Issue
Block a user