summaryrefslogtreecommitdiffstats
path: root/config/cmake/HDF5ExampleCache.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'config/cmake/HDF5ExampleCache.cmake')
-rw-r--r--config/cmake/HDF5ExampleCache.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/config/cmake/HDF5ExampleCache.cmake b/config/cmake/HDF5ExampleCache.cmake
index f5fb620..6ac9cc0 100644
--- a/config/cmake/HDF5ExampleCache.cmake
+++ b/config/cmake/HDF5ExampleCache.cmake
@@ -27,18 +27,19 @@ set (EXAMPLE_VARNAME "H5")
set (H5EX_RESOURCES_DIR ${HDF_RESOURCES_DIR})
message (STATUS "HDF5 Example H5EX_RESOURCES_DIR: ${H5EX_RESOURCES_DIR}")
if (DEFAULT_API_VERSION MATCHES "v16")
- set (H5_LIBVER_DIR 16)
+ set (H5_USE_16_API ON)
elseif (DEFAULT_API_VERSION MATCHES "v18")
- set (H5_LIBVER_DIR 18)
+ set (H5_USE_18_API ON)
elseif (DEFAULT_API_VERSION MATCHES "v110")
- set (H5_LIBVER_DIR 110)
+ set (H5_USE_110_API ON)
elseif (DEFAULT_API_VERSION MATCHES "v112")
- set (H5_LIBVER_DIR 112)
+ set (H5_USE_112_API ON)
elseif (DEFAULT_API_VERSION MATCHES "v114")
- set (H5_LIBVER_DIR 114)
+ set (H5_USE_114_API ON)
elseif (DEFAULT_API_VERSION MATCHES "v116")
- set (H5_LIBVER_DIR 116)
+ set (H5_USE_116_API ON)
endif ()
+message (STATUS "HDF5 H5_LIBVER_DIR: ${H5_LIBVER_DIR} HDF5_API_VERSION: ${DEFAULT_API_VERSION}")
if (NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
set (USE_SHARED_LIBS OFF CACHE BOOL "Use Shared Libraries for Examples" FORCE)