mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Fix CMake build so netcdf_meta.h has correct form
The `NC_HAS_MULTIFILTERS` line in `netcdf_meta.h` was not of the correct form -- showed as ``` #define NC_HAS_MULTIFILTERS ``` Instead of the better form: ``` #define NC_HAS_MULTIFILTERS 0 (or 1 if enabled) ```
This commit is contained in:
parent
c612db3b1a
commit
143c191898
@ -568,7 +568,7 @@ IF(ENABLE_NETCDF_4 AND NOT ENABLE_LOGGING AND ENABLE_SET_LOG_LEVEL_FUNC)
|
||||
ENDIF()
|
||||
|
||||
# This has multiversion capability
|
||||
SET(HAS_MULTIFILTERS yes CACHE BOOL "")
|
||||
SET(ENABLE_MULTIFILTERS yes CACHE BOOL "")
|
||||
|
||||
# Option to allow for strict null file padding.
|
||||
# See https://github.com/Unidata/netcdf-c/issues/657 for more information
|
||||
@ -2121,6 +2121,7 @@ is_enabled(HAVE_H5Z_SZIP HAS_SZLIB)
|
||||
is_enabled(HDF5_HAS_PAR_FILTERS HAS_PAR_FILTERS)
|
||||
is_enabled(ENABLE_NCZARR HAS_NCZARR)
|
||||
is_enabled(ENABLE_NCZARR_S3_TESTS DO_S3_TESTS)
|
||||
is_enabled(ENABLE_MULTIFILTERS HAS_MULTIFILTERS)
|
||||
|
||||
# Generate file from template.
|
||||
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/libnetcdf.settings.in"
|
||||
|
Loading…
Reference in New Issue
Block a user