Skip to content

Zstandard support not compiled with CMake #472

@fjansson

Description

@fjansson

version: netcdf-fortran 4.6.2
OS: Arch Linux

I'm trying to get netcdf-fortran with zstandard compression working on Arch Linux. I already found that the Arch PKGBUILD script misses the HDF5_PLUGIN_PATH variable. A fix could be to add export HDF5_PLUGIN_PATH=nc-config --plugindir` in the Arch build script.

However, it seems the CMake build system never defines the preprocessor macro ENABLE_ZSTD, which is checked with an #ifdef in fortran/nf_nc4.F90

So, when I compile netcdf-fortran manually, using ./configure I can use zstandard, but when I compile it using cmake (via the PKGBUILD script), zstandard support is not available. I cannot find ENABLE_ZSTD anywhere in the CMake files, although there is a block of complicated zstandard-related logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions