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:
nicolas le goff 2019-12-07 01:08:13 +01:00 committed by Adam J. Stewart
parent 842e9d9375
commit d173ec6a35

View file

@ -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