def METHOD_NAME(self):
    tc = CMakeToolchain(self)
    tc.variables["BUILD_TESTING"] = False
    tc.variables["BUILD_UTILITIES"] = False
    tc.variables["ENABLE_TESTS"] = False
    tc.variables["ENABLE_FILTER_TESTING"] = False
    tc.variables["ENABLE_NETCDF_4"] = self.options.netcdf4
    tc.variables["ENABLE_CDF5"] = self.options.cdf5
    tc.variables["ENABLE_DAP"] = self.options.dap
    tc.variables["ENABLE_BYTERANGE"] = self.options.byterange
    tc.variables["USE_HDF5"] = self.options.with_hdf5
    tc.variables["NC_FIND_SHARED_LIBS"] = self.options.with_hdf5 and self.dependencies["hdf5"].options.shared
    # Honor BUILD_SHARED_LIBS from conan_toolchain (see https://github.com/conan-io/conan/issues/11840)
    tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0077"] = "NEW"
    tc.METHOD_NAME()
    tc = CMakeDeps(self)
    tc.METHOD_NAME()