fops_zip: require libz
authorSilas Parker <skyhisi@user.github.invalid.com>
Thu, 9 Mar 2017 11:21:40 +0000 (19:21 +0800)
committerAndy Green <andy@warmcat.com>
Thu, 9 Mar 2017 11:21:40 +0000 (19:21 +0800)
CMakeLists.txt

index f7ad101..579faa4 100644 (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.