From d173ec6a35001557f1016641b17f965e84097cfd Mon Sep 17 00:00:00 2001 From: nicolas le goff Date: Sat, 7 Dec 2019 01:08:13 +0100 Subject: [PATCH] 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. --- var/spack/repos/builtin/packages/mesquite/package.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/mesquite/package.py b/var/spack/repos/builtin/packages/mesquite/package.py index 199065e585..daed1e3be9 100644 --- a/var/spack/repos/builtin/packages/mesquite/package.py +++ b/var/spack/repos/builtin/packages/mesquite/package.py @@ -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