Skip to content

Commit

Permalink
cmake determination of par filters presence
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 7, 2020
1 parent 5e51323 commit bb3fc14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bb3fc14

Please sign in to comment.