Handle both HTTP & HTTPS in HttpClientSession; remove macro WEBCC_ENABLE_SSL.

This commit is contained in:
Chunting Gu
2019-03-06 13:46:19 +08:00
parent 9b8304f06c
commit ffa0794926
9 changed files with 171 additions and 72 deletions
+1 -14
View File
@@ -1,15 +1,2 @@
set(LIBS webcc jsoncpp ${Boost_LIBRARIES} "${CMAKE_THREAD_LIBS_INIT}")
set(LIBS ${LIBS} ${OPENSSL_LIBRARIES})
if(WIN32)
set(LIBS ${LIBS} crypt32)
endif()
if(UNIX)
# Add `-ldl` for Linux to avoid "undefined reference to `dlopen'".
set(LIBS ${LIBS} ${CMAKE_DL_LIBS})
endif()
add_executable(github_rest_client main.cc)
target_link_libraries(github_rest_client ${LIBS})
target_link_libraries(github_rest_client ${EXAMPLE_COMMON_LIBS} jsoncpp)