esmf: add static netcdf-c support (#34579)
This commit is contained in:
parent
c3b0806f6c
commit
5da231969e
@ -343,6 +343,11 @@ def setup_build_environment(self, env):
|
|||||||
# NetCDF format.
|
# NetCDF format.
|
||||||
env.set("ESMF_NETCDF", "nc-config")
|
env.set("ESMF_NETCDF", "nc-config")
|
||||||
env.set("ESMF_NFCONFIG", "nf-config")
|
env.set("ESMF_NFCONFIG", "nf-config")
|
||||||
|
netcdfc = spec["netcdf-c"]
|
||||||
|
if netcdfc.satisfies("~shared"):
|
||||||
|
nc_config = which(os.path.join(netcdfc.prefix.bin, "nc-config"))
|
||||||
|
nc_flags = nc_config("--libs", output=str).strip()
|
||||||
|
env.set("ESMF_NETCDF_LIBS", nc_flags)
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Parallel-NetCDF #
|
# Parallel-NetCDF #
|
||||||
|
Loading…
Reference in New Issue
Block a user