diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/ncview/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ncview/package.py b/var/spack/repos/builtin/packages/ncview/package.py index 6f83aa9139..ecd733ccea 100644 --- a/var/spack/repos/builtin/packages/ncview/package.py +++ b/var/spack/repos/builtin/packages/ncview/package.py @@ -36,3 +36,13 @@ class Ncview(AutotoolsPackage): depends_on('udunits2') depends_on('libpng') depends_on('libxaw') + + def configure_args(self): + spec = self.spec + + config_args = [] + + if spec.satisfies('^netcdf+mpi'): + config_args.append('CC={0}'.format(spec['mpi'].mpicc)) + + return config_args |