Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,21 @@ find_package(ZLIB REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(Threads)
find_package(Cares)
find_package(Boost 1.58 REQUIRED
COMPONENTS
set(PROXYGEN_BOOST_COMPONENTS
iostreams
context
filesystem
program_options
regex
system
thread
chrono
)
find_package(Boost 1.58 REQUIRED COMPONENTS ${PROXYGEN_BOOST_COMPONENTS})
if (Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
list(APPEND PROXYGEN_BOOST_COMPONENTS system)
find_package(Boost 1.58 REQUIRED COMPONENTS ${PROXYGEN_BOOST_COMPONENTS})
endif()
string(REPLACE ";" " " PROXYGEN_BOOST_COMPONENTS "${PROXYGEN_BOOST_COMPONENTS}")

list(APPEND
_PROXYGEN_COMMON_COMPILE_OPTIONS
Expand Down
11 changes: 1 addition & 10 deletions cmake/proxygen-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,7 @@ find_dependency(Fizz)
find_dependency(ZLIB)
find_dependency(OpenSSL)
find_dependency(Threads)
find_dependency(Boost 1.58 REQUIRED
COMPONENTS
iostreams
context
filesystem
program_options
regex
system
thread
)
find_dependency(Boost 1.58 REQUIRED COMPONENTS @PROXYGEN_BOOST_COMPONENTS@)

if(NOT TARGET proxygen::proxygen)
include("${CMAKE_CURRENT_LIST_DIR}/proxygen-targets.cmake")
Expand Down