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.


--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,6 +76,7 @@
   ENDIF(LIBMINC_USE_SYSTEM_NIFTI)
   
   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)
