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
@ -28,10 +28,15 @@ class Mesquite(AutotoolsPackage):
|
|||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
args = [
|
args = [
|
||||||
'CC=%s' % self.spec['mpi'].mpicc,
|
|
||||||
'CXX=%s' % self.spec['mpi'].mpicxx,
|
|
||||||
'--with-mpi=%s' % self.spec['mpi'].prefix,
|
|
||||||
'--enable-release',
|
'--enable-release',
|
||||||
'--enable-shared',
|
'--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
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user