summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/netcdf-c/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf-c/package.py b/var/spack/repos/builtin/packages/netcdf-c/package.py
index de3f8950cc..1026ce1e83 100644
--- a/var/spack/repos/builtin/packages/netcdf-c/package.py
+++ b/var/spack/repos/builtin/packages/netcdf-c/package.py
@@ -98,6 +98,10 @@ class NetcdfC(AutotoolsPackage):
depends_on("curl@7.18.0:", when="+dap")
# depends_on("curl@7.18.0:", when='+cdmremote')
+ # Need to include libxml2 when using DAP in 4.9.0 and newer to build
+ # https://github.com/Unidata/netcdf-c/commit/53464e89635a43b812b5fec5f7abb6ff34b9be63
+ depends_on("libxml2", when="@4.9.0:+dap")
+
depends_on("parallel-netcdf", when="+parallel-netcdf")
# We need to build with MPI wrappers if any of the two