mesquite: fix build of the no mpi variant. (#14012)
* mesquite: fix build of the no mpi variant. * mesquite: added the --without-mpi option to configure.
This commit is contained in:
parent
842e9d9375
commit
d173ec6a35
1 changed files with 8 additions and 3 deletions
|
@ -28,10 +28,15 @@ class Mesquite(AutotoolsPackage):
|
|||
|
||||
def configure_args(self):
|
||||
args = [
|
||||
'CC=%s' % self.spec['mpi'].mpicc,
|
||||
'CXX=%s' % self.spec['mpi'].mpicxx,
|
||||
'--with-mpi=%s' % self.spec['mpi'].prefix,
|
||||
'--enable-release',
|
||||
'--enable-shared',
|
||||
]
|
||||
|
||||
if '+mpi' in self.spec:
|
||||
args.append('CC=%s' % self.spec['mpi'].mpicc)
|
||||
args.append('CXX=%s' % self.spec['mpi'].mpicxx)
|
||||
args.append('--with-mpi=%s' % self.spec['mpi'].prefix)
|
||||
else:
|
||||
args.append('--without-mpi')
|
||||
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue