mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Disabled CDF5 generation support for ncgen if USE_CDF5 is false.
This commit is contained in:
parent
399a43ae89
commit
143fb237f9
@ -498,6 +498,13 @@ main(
|
||||
|
||||
/* Compute the k_flag (1st pass) using rules in the man page (ncgen.1).*/
|
||||
|
||||
#ifndef USE_CDF5
|
||||
if(k_flag == NC_FORMAT_CDF5) {
|
||||
derror("Output format CDF5 requested, but netcdf was built without cdf5 support.");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef USE_NETCDF4
|
||||
if(enhanced_flag) {
|
||||
derror("CDL input is enhanced mode, but --disable-netcdf4 was specified during build");
|
||||
|
Loading…
Reference in New Issue
Block a user