Add timeout control to http server (draft)

This commit is contained in:
Adam Gu
2018-04-09 16:53:47 +08:00
parent 23090ee369
commit e2bf8aaaf4
14 changed files with 163 additions and 58 deletions
+6 -1
View File
@@ -65,7 +65,12 @@ find_package(Threads REQUIRED)
# Boost version: 1.66+
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.66.0 REQUIRED COMPONENTS system thread)
if(WIN32)
# TODO: Fix COMPONENTS on Windows.
find_package(Boost 1.66.0 REQUIRED)
else()
find_package(Boost 1.66.0 REQUIRED COMPONENTS system thread)
endif()
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})