mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Replace ENABLE_NETCDF4 with NETCDF_ENABLE_NETCDF4
This commit is contained in:
parent
d1334f7b88
commit
b51234b06a
@ -432,12 +432,12 @@ endif()
|
||||
# as equivalent to enable-hdf5.
|
||||
# We detect this using these rules:
|
||||
# 1. if NETCDF_ENABLE_HDF5 is off then disable hdf5
|
||||
# 2. if ENABLE_NETCDF4 is off then disable hdf5
|
||||
# 2. if NETCDF_ENABLE_NETCDF4 is off then disable hdf5
|
||||
# 3. else enable hdf5
|
||||
option(ENABLE_NETCDF_4 "Use HDF5." ON)
|
||||
option(ENABLE_NETCDF4 "Use HDF5." ON)
|
||||
option(NETCDF_ENABLE_NETCDF4 "Use HDF5." ON)
|
||||
option(NETCDF_ENABLE_HDF5 "Use HDF5." ON)
|
||||
if(NOT NETCDF_ENABLE_HDF5 OR NOT ENABLE_NETCDF4 OR NOT ENABLE_NETCDF_4)
|
||||
if(NOT NETCDF_ENABLE_HDF5 OR NOT NETCDF_ENABLE_NETCDF4 OR NOT ENABLE_NETCDF_4)
|
||||
set(NETCDF_ENABLE_HDF5 OFF CACHE BOOL "Use HDF5" FORCE)
|
||||
endif()
|
||||
option(NETCDF_ENABLE_HDF4 "Build netCDF-4 with HDF4 read capability(HDF4, HDF5 and Zlib required)." OFF)
|
||||
@ -451,7 +451,7 @@ option(NETCDF_ENABLE_CDF5 "Enable CDF5 support" ON)
|
||||
# So depending on what above formats are enabled, enable netcdf-4
|
||||
if(NETCDF_ENABLE_HDF5 OR NETCDF_ENABLE_HDF4 OR NETCDF_ENABLE_NCZARR)
|
||||
set(ENABLE_NETCDF_4 ON CACHE BOOL "Enable netCDF-4 API" FORCE)
|
||||
set(ENABLE_NETCDF4 ON CACHE BOOL "Enable netCDF4 Alias" FORCE)
|
||||
set(NETCDF_ENABLE_NETCDF4 ON CACHE BOOL "Enable netCDF4 Alias" FORCE)
|
||||
endif()
|
||||
|
||||
# enable|disable all forms of network access
|
||||
@ -478,7 +478,7 @@ set(NCIO_MINBLOCKSIZE 256 CACHE STRING "Minimum I/O Blocksize for netCDF classic
|
||||
if(ENABLE_NETCDF_4)
|
||||
set(USE_NETCDF4 ON CACHE BOOL "")
|
||||
set(ENABLE_NETCDF_4 ON CACHE BOOL "")
|
||||
set(ENABLE_NETCDF4 ON CACHE BOOL "")
|
||||
set(NETCDF_ENABLE_NETCDF4 ON CACHE BOOL "")
|
||||
else()
|
||||
set(USE_HDF4_FILE_TESTS OFF)
|
||||
set(USE_HDF4 OFF)
|
||||
|
Loading…
Reference in New Issue
Block a user