commit | c1b5c8cabd91db3812b5f3fba2b617f7f5a95aa2 | [log] [tgz] |
---|---|---|
author | Silas Parker <skyhisi@user.github.invalid.com> | Thu Mar 09 19:21:40 2017 +0800 |
committer | Andy Green <andy@warmcat.com> | Thu Mar 09 19:21:40 2017 +0800 |
tree | 1abe33cb2642114f72f8f8389ae9cfd156a8a1eb | |
parent | 3c02868408fac702af860e349868a8dedc778c12 [diff] |
fops_zip: require libz
diff --git a/CMakeLists.txt b/CMakeLists.txt index f7ad101..579faa4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -659,8 +659,12 @@ 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.