From 0837758b19fe8a456b4232d24064fad3267c6771 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 1 Apr 2020 11:54:33 +0200 Subject: Request HDF5 1.10 API There are changes with 1.12 which we can't use yet (need to maintain compatibility down to 1.8 for now, but the subset of the HDF5 API we use works with 1.8 and 1.10). --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec944a5a..4b21e094 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,9 @@ find_package(TIFF) find_package(OpenCL) find_package(PkgConfig) +# Request HDF5 1.10-style API (can't use 1.12-style yet) +add_definitions(-DH5_USE_110_API) + pkg_check_modules (GLIB glib-2.0) include_directories (${GLIB_INCLUDE_DIRS}) link_directories (${GLIB_LIBRARY_DIRS}) -- cgit v1.2.3