projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c02868
)
fops_zip: require libz
author
Silas Parker
<skyhisi@user.github.invalid.com>
Thu, 9 Mar 2017 11:21:40 +0000
(19:21 +0800)
committer
Andy Green
<andy@warmcat.com>
Thu, 9 Mar 2017 11:21:40 +0000
(19:21 +0800)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
f7ad101
..
579faa4
100644
(file)
--- 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.