If libZstd isn't found, turn off netcdf_enable_filter_zstd

This commit is contained in:
Ward Fisher 2024-09-30 16:22:06 -06:00
parent 0ad7164de0
commit 870875d7c2

View File

@ -397,6 +397,8 @@ set(USE_SZIP ${HAVE_SZ})
set_std_filter(Blosc)
if(Zstd_FOUND)
set_std_filter(Zstd)
else()
set(NETCDF_ENABLE_FILTER_ZSTD OFF)
endif()
if(Bz2_FOUND)
set_std_filter(Bz2)