From 22b26be03f3df69fc1ced62de90e89bcd1807fe3 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 12 Jun 2021 14:12:25 +0200 Subject: [PATCH] Fix local building of Matio for old hdf5 versions --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d2537dea..7033687f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2105,7 +2105,7 @@ if(NOT MATIO_FOUND OR MATIO_VERSION_STRING VERSION_LESS ${GNSSSDR_MATIO_MIN_VERS message(FATAL_ERROR "*** The hdf5 library is required to build Matio from source.") endif() - if(CMAKE_VERSION VERSION_LESS 3.7) + if(CMAKE_VERSION VERSION_LESS 3.7 OR "${HDF5_VERSION}" VERSION_LESS "1.8.13") if(ZLIB_FOUND) get_filename_component(ZLIB_BASE_DIR ${ZLIB_INCLUDE_DIRS} DIRECTORY) if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|kFreeBSD|GNU")