summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRobert D. French <robert@robertdfrench.me>2016-08-28 20:43:54 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2016-08-28 17:43:54 -0700
commit079d063c6d94be84974f1ddd6eb880e902c95b4a (patch)
tree27d213fd85777014e8cf44b43544b990fc2447af /var
parentdb7c3d2de658e8540dba6f0f75b75e14f9316fb9 (diff)
downloadspack-079d063c6d94be84974f1ddd6eb880e902c95b4a.tar.gz
spack-079d063c6d94be84974f1ddd6eb880e902c95b4a.tar.bz2
spack-079d063c6d94be84974f1ddd6eb880e902c95b4a.tar.xz
spack-079d063c6d94be84974f1ddd6eb880e902c95b4a.zip
Variant for building cdo without mpi (#1638)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cdo/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cdo/package.py b/var/spack/repos/builtin/packages/cdo/package.py
index 7400c3a56c..a2f04e5b35 100644
--- a/var/spack/repos/builtin/packages/cdo/package.py
+++ b/var/spack/repos/builtin/packages/cdo/package.py
@@ -34,7 +34,11 @@ class Cdo(Package):
version('1.6.9', 'bf0997bf20e812f35e10188a930e24e2')
+ variant('mpi', default=True)
+
depends_on('netcdf')
+ depends_on('netcdf+mpi', when='+mpi')
+ depends_on('netcdf~mpi', when='~mpi')
def install(self, spec, prefix):
configure('--prefix={0}'.format(prefix))