From: Debian Science Maintainers Date: Mon, 12 Sep 2016 09:41:06 +0000 (+0100) Subject: fix_hdf5 X-Git-Tag: archive/raspbian/2.4.4-3+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7dfe1a751123d4cf6615a3daf7354bd921765f20;p=mathgl.git fix_hdf5 Gbp-Pq: Name fix_hdf5.patch --- 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)