File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,16 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING
27
27
message (STATUS "-------- HDF5 detection -------------" )
28
28
29
29
find_package (HDF5 REQUIRED C HL)
30
+ if (NOT HDF5_VERSION)
31
+ set (HDF5_SUBVERSION_ISSUE TRUE )
32
+ endif ()
30
33
31
34
# Link against interface target and export
32
35
target_link_libraries (h5_c PRIVATE hdf5::hdf5 hdf5::hdf5_hl)
33
- if (HDF5_VERSION VERSION_GREATER 1.10)
36
+ if (HDF5_VERSION VERSION_GREATER 1.10 OR HDF5_SUBVERSION_ISSUE )
34
37
target_compile_definitions (h5_c PRIVATE H5_USE_110_API)
35
38
endif ()
36
- if (HDF5_VERSION VERSION_GREATER_EQUAL 1.13)
39
+ if (HDF5_VERSION VERSION_GREATER_EQUAL 1.13 OR HDF5_SUBVERSION_ISSUE )
37
40
target_compile_definitions (h5_c PRIVATE H5_VER_GE_113)
38
41
endif ()
39
42
You can’t perform that action at this time.
0 commit comments