netcdf-cxx4: Update to use CPPFLAGS (#8148)

* Fix bug; don't know why this ever worked in the first place.

* Add fix to netcdf-fortran too; flake8

* Simplify configure_args()

* netcdf-fortran: simplify that too
This commit is contained in:
Elizabeth Fischer 2018-05-21 17:23:35 -04:00 committed by Adam J. Stewart
parent 646771300d
commit 90d36016ef
2 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,9 @@ class NetcdfCxx4(AutotoolsPackage):
force_autoreconf = True force_autoreconf = True
def configure_args(self):
return ['CPPFLAGS=-I' + self.spec['netcdf'].prefix.include]
@property @property
def libs(self): def libs(self):
shared = True shared = True

View File

@ -36,6 +36,9 @@ class NetcdfFortran(AutotoolsPackage):
depends_on('netcdf') depends_on('netcdf')
def configure_args(self):
return ['CPPFLAGS=-I' + self.spec['netcdf'].prefix.include]
@property @property
def libs(self): def libs(self):
libraries = ['libnetcdff'] libraries = ['libnetcdff']