fix CMake command issue spotted by @paulromano

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
John Tramm 2020-03-25 14:17:39 -05:00 committed by GitHub
parent 77bbe88860
commit 16a6f00c17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ endif()
# Version 1.12 of HDF5 deprecates the H5Oget_info_by_idx() interface.
# Thus, we give these flags to allow usage of the old interface in newer
# versions of HDF5.
if(${HDF5_VERSION} VERSION_GREATER_EQUAL "1.12.0")
if(NOT (${HDF5_VERSION} VERSION_LESS 1.12.0))
list(APPEND cxxflags -DH5Oget_info_by_idx_vers=1 -DH5O_info_t_vers=1)
endif()