diff options
author | Jonas Lippuner <jlippuner@lanl.gov> | 2019-09-07 22:29:53 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-09-07 22:29:53 -0500 |
commit | c3a25280229c50964d64fc139929c69d8ec570b3 (patch) | |
tree | 6cee05c170cb020c92c930c73b33b0179390cb17 /var | |
parent | 331e4e32befc3f2911b237b822b38413448851a6 (diff) | |
download | spack-c3a25280229c50964d64fc139929c69d8ec570b3.tar.gz spack-c3a25280229c50964d64fc139929c69d8ec570b3.tar.bz2 spack-c3a25280229c50964d64fc139929c69d8ec570b3.tar.xz spack-c3a25280229c50964d64fc139929c69d8ec570b3.zip |
add mpi variant to p4est package to allow turning off MPI (#12739)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/p4est/package.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/p4est/package.py b/var/spack/repos/builtin/packages/p4est/package.py index ea633589c5..c09e45546c 100644 --- a/var/spack/repos/builtin/packages/p4est/package.py +++ b/var/spack/repos/builtin/packages/p4est/package.py @@ -18,6 +18,7 @@ class P4est(AutotoolsPackage): version('2.0', 'c522c5b69896aab39aa5a81399372a19a6b03fc6200d2d5d677d9a22fe31029a') version('1.1', '37ba7f4410958cfb38a2140339dbf64f') + variant('mpi', default=True, description='Enable MPI') variant('openmp', default=False, description='Enable OpenMP') # build dependencies @@ -26,7 +27,7 @@ class P4est(AutotoolsPackage): depends_on('libtool@2.4.2:', type='build') # other dependencies - depends_on('mpi') + depends_on('mpi', when='+mpi') depends_on('zlib') # from sc upstream, correct the default libraries @@ -45,7 +46,6 @@ class P4est(AutotoolsPackage): def configure_args(self): args = [ - '--enable-mpi', '--enable-shared', '--disable-vtk-binary', '--without-blas', @@ -57,6 +57,11 @@ class P4est(AutotoolsPackage): 'F77=%s' % self.spec['mpi'].mpif77 ] + if '~mpi' in self.spec: + args.append('--disable-mpi') + else: + args.append('--enable-mpi') + if '+openmp' in self.spec: try: args.append( |