Skip to content

Commit

Permalink
[cmake] Fix check for hdf5 subversion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Jul 29, 2024
1 parent 9b0c67d commit db9c190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c++/h5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit db9c190

Please sign in to comment.