log the connect error

This commit is contained in:
Chunting Gu
2021-11-15 09:52:10 +08:00
parent f6e25ab19a
commit 50cf424dc8
3 changed files with 22 additions and 16 deletions
+8 -11
View File
@@ -56,13 +56,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Boost
set(BOOST_COMPONENTS system date_time)
if(NOT WEBCC_USE_STD_FILESYSTEM)
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} filesystem)
endif()
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.66.0 REQUIRED COMPONENTS ${BOOST_COMPONENTS})
@@ -84,6 +81,14 @@ if(WEBCC_ENABLE_SSL)
endif()
endif()
if(WEBCC_ENABLE_GZIP)
find_package(ZLIB REQUIRED)
if(ZLIB_FOUND)
# You can link to ${ZLIB_LIBRARIES} or the imported target ZLIB::ZLIB.
include_directories(${ZLIB_INCLUDE_DIRS})
endif()
endif()
include_directories(
# For including its own headers as "webcc/client.h".
${PROJECT_SOURCE_DIR}
@@ -96,14 +101,6 @@ set(THIRD_PARTY_DIR ${PROJECT_SOURCE_DIR}/third_party)
# For jsoncpp
include_directories(${THIRD_PARTY_DIR}/src)
if(WEBCC_ENABLE_GZIP)
find_package(ZLIB REQUIRED)
if(ZLIB_FOUND)
# You can link to ${ZLIB_LIBRARIES} or the imported target ZLIB::ZLIB.
include_directories(${ZLIB_INCLUDE_DIRS})
endif()
endif()
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
add_subdirectory(webcc)