From 7dfe1a751123d4cf6615a3daf7354bd921765f20 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Mon, 12 Sep 2016 10:41:06 +0100 Subject: [PATCH] fix_hdf5 Gbp-Pq: Name fix_hdf5.patch --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9eb64b..bcab59e 100644 --- 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) -- 2.30.2