From 870875d7c2d50821f047d1512b54507cf3dac887 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Mon, 30 Sep 2024 16:22:06 -0600 Subject: [PATCH] If libZstd isn't found, turn off netcdf_enable_filter_zstd --- cmake/dependencies.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index c21ac3b22..a5cb830e9 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -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)