Add an option to disable GZIP.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user