diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-12-22 21:17:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 21:17:05 (GMT) |
commit | 366f2d94a3f5ee20287de8062a2a2c895e9eb856 (patch) | |
tree | 723c29f3a08b73b1e69bd824c392960e4bab3bd9 /config/cmake | |
parent | 11e15aeed1b82201ea0805dcef5bfce3ac02b9cb (diff) | |
download | hdf5-366f2d94a3f5ee20287de8062a2a2c895e9eb856.zip hdf5-366f2d94a3f5ee20287de8062a2a2c895e9eb856.tar.gz hdf5-366f2d94a3f5ee20287de8062a2a2c895e9eb856.tar.bz2 |
Add CMake api checks to test the new Examples folder. (#3907)
* Fix missing build-mode value
* Use 110 version file only for the 1.10 library
* Fix H5_LIBVER_DIR variable
* Disable 1.6 API tests for now.
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/HDF5ExampleCache.cmake | 13 |
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) |