Refine CMake to find boost.

This commit is contained in:
Chunting Gu
2019-07-15 17:24:21 +08:00
parent 46ea52cb90
commit db87f940e0
4 changed files with 22 additions and 9 deletions
+1 -6
View File
@@ -75,15 +75,10 @@ find_package(Threads REQUIRED)
# Boost 1.66+ required.
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
if(WIN32)
find_package(Boost REQUIRED)
else()
find_package(Boost REQUIRED COMPONENTS system filesystem date_time)
endif()
find_package(Boost 1.66.0 REQUIRED COMPONENTS system filesystem date_time)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
message(STATUS ${Boost_LIBRARIES})
endif()
if(WEBCC_ENABLE_SSL)