Author: Steve Robbins <smr@debian.org>
Last-Changed: Mon Aug 24 22:36:21 CDT 2015
Forwarded-Upstream: No
Description: Build using system findpackage.cmake files

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.


--- libminc-2.3.00~2015-08-24.orig/CMakeLists.txt
+++ libminc-2.3.00~2015-08-24/CMakeLists.txt
@@ -61,6 +61,7 @@
   FIND_PACKAGE(ZLIB REQUIRED)
   FIND_PACKAGE(HDF5 REQUIRED)
   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)
