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
					Elizabeth Fischer
				
			
				
					committed by
					
						 Adam J. Stewart
						Adam J. Stewart
					
				
			
			
				
	
			
			
			 Adam J. Stewart
						Adam J. Stewart
					
				
			
						parent
						
							646771300d
						
					
				
				
					commit
					90d36016ef
				
			| @@ -41,6 +41,9 @@ class NetcdfCxx4(AutotoolsPackage): | ||||
|  | ||||
|     force_autoreconf = True | ||||
|  | ||||
|     def configure_args(self): | ||||
|         return ['CPPFLAGS=-I' + self.spec['netcdf'].prefix.include] | ||||
|  | ||||
|     @property | ||||
|     def libs(self): | ||||
|         shared = True | ||||
|   | ||||
| @@ -36,6 +36,9 @@ class NetcdfFortran(AutotoolsPackage): | ||||
|  | ||||
|     depends_on('netcdf') | ||||
|  | ||||
|     def configure_args(self): | ||||
|         return ['CPPFLAGS=-I' + self.spec['netcdf'].prefix.include] | ||||
|  | ||||
|     @property | ||||
|     def libs(self): | ||||
|         libraries = ['libnetcdff'] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user