We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c0632 commit 2d13f5bCopy full SHA for 2d13f5b
c++/h5/CMakeLists.txt
@@ -30,10 +30,8 @@ find_package(HDF5 REQUIRED C HL)
30
31
# Link against interface target and export
32
target_link_libraries(h5_c PRIVATE hdf5::hdf5 hdf5::hdf5_hl)
33
-if(HDF5_VERSION VERSION_GREATER 1.10)
34
- target_compile_definitions(h5_c PRIVATE H5_USE_110_API)
35
-endif()
36
-if(HDF5_VERSION VERSION_GREATER_EQUAL 1.13)
+target_compile_definitions(h5_c PRIVATE H5_USE_110_API)
+if(HDF5_VERSION VERSION_GREATER_EQUAL 1.13 OR NOT HDF5_VERSION)
37
target_compile_definitions(h5_c PRIVATE H5_VER_GE_113)
38
endif()
39
0 commit comments