From bb3fc14236c12c47624d488cd89c96f3dda1d3da Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Fri, 7 Aug 2020 12:02:05 -0600 Subject: [PATCH] cmake determination of par filters presence --- .travis.yml | 2 -- CMakeLists.txt | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 673b9b4a39d..016a3fbcfad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,8 +40,6 @@ env: script: - nc-config --all - - find / -name netcdf.h - - ls -l /usr/include - autoreconf -i - export CFLAGS='-std=c99 -fsanitize=address -fno-omit-frame-pointer -Werror' - export FFLAGS='-fsanitize=address -fno-omit-frame-pointer' diff --git a/CMakeLists.txt b/CMakeLists.txt index f8468ae352d..7fdc0695f32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -315,6 +315,11 @@ CHECK_C_SOURCE_COMPILES(" choke me #endif int main() {return 0;}" HDF5_HAS_PAR_FILTERS) +if(HDF5_HAS_PAR_FILTERS) + set(HAVE_PAR_FILTERS 1) +else() + set(HAVE_PAR_FILTERS 0) +endif() ### # Check to see if this is netcdf-c-4.7.2, which won't work.