From b6cb581cecda4fad1f3434726498a35af50db843 Mon Sep 17 00:00:00 2001 From: Peter Hill Date: Fri, 29 Sep 2023 20:22:57 +0100 Subject: [PATCH] CMake: Change header in check for HDF5 zlib/szip support H5public.h might require MPI headers which we haven't found at this point Fixes #2742 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8d4b30c1f..a8f214fe94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -856,7 +856,7 @@ IF(USE_HDF5) # This needs to be near the beginning since we # need to know whether to add "-lz" to the symbol # tests below. - CHECK_C_SOURCE_COMPILES("#include + CHECK_C_SOURCE_COMPILES("#include #if !H5_HAVE_ZLIB_H #error #endif @@ -879,7 +879,7 @@ IF(USE_HDF5) ENDIF() #Check to see if H5Z_SZIP exists in HDF5_Libraries. If so, we must use szip library. - CHECK_C_SOURCE_COMPILES("#include + CHECK_C_SOURCE_COMPILES("#include #if !H5_HAVE_FILTER_SZIP #error #endif