Fix ncview with netcdf+mpi (#4305)
ncview has to be compiled using the same compiler as netcdf.
This commit is contained in:
parent
c741cd900b
commit
17b2db0bd2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user