summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/mesquite/package.py11
1 files 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