From 16a6f00c172fbb67cfa7b99f14ea33df4434c576 Mon Sep 17 00:00:00 2001 From: John Tramm Date: Wed, 25 Mar 2020 14:17:39 -0500 Subject: [PATCH] fix CMake command issue spotted by @paulromano Co-Authored-By: Paul Romano --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4ca745ed..ac05e56b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()