From: Steve Robbins <smr@debian.org>
Date: Thu, 1 Sep 2022 21:00:02 -0500
Subject: Build using system findpackage.cmake files

Last-Changed: Mon Aug 24 22:36:21 CDT 2015
Forwarded-Upstream: No

The sources contain an older copy of FindNETCDF.cmake.
We delete that in debian/rules to use the system-supplied
version, but also require this patch so that the newer
variable HDF5_C_LIBRARIES is used.
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index caf681a..63292fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,6 +84,7 @@ IF(NOT LIBMINC_EXTERNALLY_CONFIGURED)
   ENDIF()
   
   SET(HAVE_ZLIB ON)
+  set(HDF5_LIBRARY ${HDF5_C_LIBRARIES})
 ELSE(NOT LIBMINC_EXTERNALLY_CONFIGURED)
   #TODO: set paths for HDF5 etc
 ENDIF(NOT LIBMINC_EXTERNALLY_CONFIGURED)
