fix_hdf5
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Mon, 12 Sep 2016 09:41:06 +0000 (10:41 +0100)
committerAlastair McKinstry <mckinstry@debian.org>
Mon, 12 Sep 2016 09:41:06 +0000 (10:41 +0100)
Gbp-Pq: Name fix_hdf5.patch

CMakeLists.txt

index c9eb64b299dae28e9452f7552c1aaf95e3a6d180..bcab59e3a422f7fabd9ee134a7e78f7601c7fc7f 100644 (file)
@@ -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)