diff options
author | Alex Richert <alexander.richert@noaa.gov> | 2024-06-05 08:48:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 17:48:27 +0200 |
commit | 391c4cf099e67e5eb3f3734d30946c890a4442f6 (patch) | |
tree | bc4b6c3d5e09f404ef66755b3c74fa2b9436a601 | |
parent | 8260599e98eb30a869cde4c980e49547cd402fed (diff) | |
download | spack-391c4cf099e67e5eb3f3734d30946c890a4442f6.tar.gz spack-391c4cf099e67e5eb3f3734d30946c890a4442f6.tar.bz2 spack-391c4cf099e67e5eb3f3734d30946c890a4442f6.tar.xz spack-391c4cf099e67e5eb3f3734d30946c890a4442f6.zip |
netcdf-c: add logging variant (#43380)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Co-authored-by: Sergey Kosukhin <skosukhin@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/netcdf-c/package.py | 4 |
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 4d8024d072..6893d6843b 100644 --- a/var/spack/repos/builtin/packages/netcdf-c/package.py +++ b/var/spack/repos/builtin/packages/netcdf-c/package.py @@ -134,6 +134,7 @@ class NetcdfC(CMakePackage, AutotoolsPackage): variant("fsync", default=False, description="Enable fsync support") variant("nczarr_zip", default=False, description="Enable NCZarr zipfile format storage") variant("optimize", default=True, description="Enable -O2 for a more optimized lib") + variant("logging", default=False, description="Enable logging") variant("szip", default=True, description="Enable Szip compression plugin") variant("blosc", default=True, description="Enable Blosc compression plugin") @@ -337,6 +338,7 @@ class CMakeBuilder(BaseBuilder, cmake.CMakeBuilder): self.define("ENABLE_PARALLEL_TESTS", False), self.define_from_variant("ENABLE_FSYNC", "fsync"), self.define("ENABLE_LARGE_FILE_SUPPORT", True), + self.define_from_variant("NETCDF_ENABLE_LOGGING", "logging"), ] if "+parallel-netcdf" in self.pkg.spec: base_cmake_args.append(self.define("ENABLE_PNETCDF", True)) @@ -432,6 +434,8 @@ class AutotoolsBuilder(BaseBuilder, autotools.AutotoolsBuilder): config_args += self.enable_or_disable("fsync") + config_args += self.enable_or_disable("logging") + if any(self.spec.satisfies(s) for s in ["+mpi", "+parallel-netcdf", "^hdf5+mpi~shared"]): config_args.append("CC={0}".format(self.spec["mpi"].mpicc)) |