fops_zip: require libz

This commit is contained in:
Silas Parker 2017-03-09 20:26:26 +08:00 committed by Andy Green
parent 0be5279eb2
commit 98eed1871a

View file

@ -659,8 +659,12 @@ if (LWS_WITH_RANGES)
endif()
if (LWS_WITH_ZIP_FOPS)
list(APPEND SOURCES
lib/fops-zip.c)
if (LWS_WITH_ZLIB)
list(APPEND SOURCES
lib/fops-zip.c)
else()
message(FATAL_ERROR "Pre-zipped file support (LWS_WITH_ZIP_FOPS) requires ZLIB (LWS_WITH_ZLIB)")
endif()
endif()
# Add helper files for Windows.