From db9c19066fdc4245c64f90c081ae3c9198b3f0e0 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Mon, 29 Jul 2024 10:44:11 -0400 Subject: [PATCH] [cmake] Fix check for hdf5 subversion issue --- c++/h5/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c++/h5/CMakeLists.txt b/c++/h5/CMakeLists.txt index 240e189..ddea178 100644 --- a/c++/h5/CMakeLists.txt +++ b/c++/h5/CMakeLists.txt @@ -31,7 +31,7 @@ find_package(HDF5 REQUIRED C HL) # Link against interface target and export target_link_libraries(h5_c PRIVATE hdf5::hdf5 hdf5::hdf5_hl) target_compile_definitions(h5_c PRIVATE H5_USE_110_API) -if(NOT HDF5_VERSION VERSION_LESS 1.13) +if(HDF5_VERSION VERSION_GREATER_EQUAL 1.13 OR NOT HDF5_VERSION) target_compile_definitions(h5_c PRIVATE H5_VER_GE_113) endif()