Description: Fix HDF5 include directory with CMake >= 3.6.0.
 HDF5_INCLUDE_DIR was deprecated some time ago,
 only HDF5_INCLUDE_DIRS is set for CMake >= 3.6.0.
Author: Bas Couwenberg <sebastic@debian.org>
Bug-Debian: https://bugs.debian.org/835680

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -359,6 +359,9 @@ if(enable-hdf5)
 			message(SEND_ERROR "Couldn't find HDF5 library.")
 		endif(NOT HDF5_FOUND)
 	endif(NOT HDF5_FOUND)
+	if(HDF5_INCLUDE_DIRS AND NOT HDF5_INCLUDE_DIR)
+		set(HDF5_INCLUDE_DIR ${HDF5_INCLUDE_DIRS})
+	endif()
 else(enable-hdf5)
 	set(MGL_HAVE_HDF5 0)
 endif(enable-hdf5)
