aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-04-01 11:54:33 +0200
committerThomas White <taw@physics.org>2020-04-01 11:54:33 +0200
commit0837758b19fe8a456b4232d24064fad3267c6771 (patch)
tree98015ec77c7117cc90f819863170c3eb09001c0f
parent8cabd4e8cc04a75ae19068447a572ad157148ae0 (diff)
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).
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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})