Fix ncview with netcdf+mpi (#4305)

ncview has to be compiled using the same compiler as netcdf.
This commit is contained in:
Michael Kuhn 2017-05-21 03:59:15 +02:00 committed by Adam J. Stewart
parent c741cd900b
commit 17b2db0bd2

View File

@ -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