diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-02-05 22:21:29 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-02-05 22:21:29 (GMT) |
commit | fb4e5c0570f94d548ade5fb5c16878271f6a06a9 (patch) | |
tree | 84167c49440affbe00c5daf0d43ccdf6bb79462b /CMakeFilters.cmake | |
parent | 9063babaaa9b3c11a686ca9faefb70aa2091c21a (diff) | |
download | hdf5-fb4e5c0570f94d548ade5fb5c16878271f6a06a9.zip hdf5-fb4e5c0570f94d548ade5fb5c16878271f6a06a9.tar.gz hdf5-fb4e5c0570f94d548ade5fb5c16878271f6a06a9.tar.bz2 |
HDFFV-10697 Disable compression option if source unavailable
Diffstat (limited to 'CMakeFilters.cmake')
-rw-r--r-- | CMakeFilters.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeFilters.cmake b/CMakeFilters.cmake index 71dabb1..5a89564 100644 --- a/CMakeFilters.cmake +++ b/CMakeFilters.cmake @@ -27,7 +27,15 @@ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MAT set (TGZPATH ${HDF5_SOURCE_DIR}) endif () set (ZLIB_URL ${TGZPATH}/${ZLIB_TGZ_NAME}) + if (NOT EXISTS "${ZLIB_URL}") + set (HDF5_ENABLE_Z_LIB_SUPPORT OFF CACHE BOOL "" FORCE) + message (STATUS "Filter ZLIB file ${ZLIB_URL} not found") + endif () set (SZIP_URL ${TGZPATH}/${SZIP_TGZ_NAME}) + if (NOT EXISTS "${SZIP_URL}") + set (HDF5_ENABLE_SZIP_SUPPORT OFF CACHE BOOL "" FORCE) + message (STATUS "Filter SZIP file ${SZIP_URL} not found") + endif () else () set (ZLIB_USE_EXTERNAL 0) set (SZIP_USE_EXTERNAL 0) |