summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
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))