Handle zlib on Ubuntu.

This commit is contained in:
Chunting Gu
2019-03-19 09:57:18 +08:00
parent 5f64f3bb62
commit bc586c3ea0
4 changed files with 13 additions and 5 deletions
+2
View File
@@ -5,6 +5,8 @@ set(EXAMPLE_COMMON_LIBS webcc ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES}
"${CMAKE_THREAD_LIBS_INIT}")
if(WIN32)
set(EXAMPLE_COMMON_LIBS ${EXAMPLE_COMMON_LIBS} zlibstatic crypt32)
else()
set(EXAMPLE_COMMON_LIBS ${EXAMPLE_COMMON_LIBS} ${ZLIB_LIBRARIES})
endif()
if(UNIX)