From 079d063c6d94be84974f1ddd6eb880e902c95b4a Mon Sep 17 00:00:00 2001 From: "Robert D. French" Date: Sun, 28 Aug 2016 20:43:54 -0400 Subject: Variant for building cdo without mpi (#1638) --- var/spack/repos/builtin/packages/cdo/package.py | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- cgit v1.2.3-70-g09d2