Add an option to disable GZIP.

This commit is contained in:
Chunting Gu
2019-04-22 14:43:46 +08:00
parent 88f5ae3c91
commit 2a868c4dc1
20 changed files with 130 additions and 74 deletions
+7 -6
View File
@@ -10,14 +10,15 @@ set(AT_TARGET_NAME webcc_autotest)
set(AT_LIBS webcc ${Boost_LIBRARIES} "${CMAKE_THREAD_LIBS_INIT}")
if(WEBCC_ENABLE_SSL)
set(AT_LIBS ${AT_LIBS} ${OPENSSL_LIBRARIES})
set(AT_LIBS ${AT_LIBS} ${OPENSSL_LIBRARIES} crypt32)
endif()
if(WIN32)
# TODO: crypt32 should be ssl related.
set(AT_LIBS ${AT_LIBS} zlibstatic crypt32)
else()
set(AT_LIBS ${AT_LIBS} ${ZLIB_LIBRARIES})
if(WEBCC_ENABLE_GZIP)
if(WIN32)
set(AT_LIBS ${AT_LIBS} zlibstatic)
else()
set(AT_LIBS ${AT_LIBS} ${ZLIB_LIBRARIES})
endif()
endif()
if(UNIX)