From 98eed1871a04d57a6cc896800c2e7fdff3c3221d Mon Sep 17 00:00:00 2001 From: Silas Parker Date: Thu, 9 Mar 2017 20:26:26 +0800 Subject: [PATCH] fops_zip: require libz --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7ad1013..579faa4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.