diff options
author | nicolas le goff <nicolas.legoff.aaa@gmail.com> | 2019-12-07 01:08:13 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-12-06 18:08:13 -0600 |
commit | d173ec6a35001557f1016641b17f965e84097cfd (patch) | |
tree | db7be67089d0c1a047b39f01e4c0d1f5589bf8ee | |
parent | 842e9d93756b7459a2b87e01506dca4e3d83e70f (diff) | |
download | spack-d173ec6a35001557f1016641b17f965e84097cfd.tar.gz spack-d173ec6a35001557f1016641b17f965e84097cfd.tar.bz2 spack-d173ec6a35001557f1016641b17f965e84097cfd.tar.xz spack-d173ec6a35001557f1016641b17f965e84097cfd.zip |
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.
-rw-r--r-- | var/spack/repos/builtin/packages/mesquite/package.py | 11 |
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 |