From bd7cf33f95fec28848ac1281c49d7ad3fb06aa9d Mon Sep 17 00:00:00 2001 From: kgerheiser Date: Mon, 3 Aug 2020 17:13:54 -0400 Subject: [PATCH] Enable NetCDF by adding -DUSE_NETCDF4 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45f79b81..21baa6c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,8 @@ endif() list(APPEND definitions_list -DUSE_IPOLATES=${USE_IPOLATES}) if(USE_NETCDF4) - find_package(NetCDF MODULE REQUIRED COMPONENTS C) + find_package(NetCDF MODULE REQUIRED COMPONENTS C) + list(APPEND definitions_list -DUSE_NETCDF4 -DUSE_HDF5 -DHDF5="hdf5") endif() if(USE_JASPER)