diff options
author | Thomas White <taw@physics.org> | 2020-02-11 11:42:21 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-02-11 11:42:21 +0100 |
commit | a607da9373e4cbf8609fac477ef5ecd3323ca234 (patch) | |
tree | b5e083ba61d76a714859a11e3318d71695b931e5 /libcrystfel/CMakeLists.txt | |
parent | 6f2ca6294851780290877c387ada86744bbbebc6 (diff) |
Don't use gzbuffer if it's not available
Enables compatability with zlib < 1.2.3.5
Diffstat (limited to 'libcrystfel/CMakeLists.txt')
-rw-r--r-- | libcrystfel/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/CMakeLists.txt b/libcrystfel/CMakeLists.txt index 87b621b0..9f79b0c4 100644 --- a/libcrystfel/CMakeLists.txt +++ b/libcrystfel/CMakeLists.txt @@ -16,6 +16,11 @@ set(HAVE_XGANDALF ${XGANDALF_FOUND}) set(HAVE_PINKINDEXER ${PINKINDEXER_FOUND}) set(HAVE_FDIP ${FDIP_FOUND}) +# Recent enough version of zlib? +set(CMAKE_REQUIRED_LIBRARIES "-lz") +check_symbol_exists(gzbuffer "zlib.h" HAVE_GZBUFFER) +unset(CMAKE_REQUIRED_LIBRARIES) + # Find out where forkpty() is declared set(CMAKE_REQUIRED_LIBRARIES "-lutil") check_symbol_exists(forkpty "pty.h" HAVE_FORKPTY_PTY_H) |