Refine CMake to find boost.
This commit is contained in:
+1
-6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user