File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -80,17 +80,21 @@ find_package(ZLIB REQUIRED)
80
80
find_package (OpenSSL REQUIRED )
81
81
find_package (Threads )
82
82
find_package (Cares )
83
- find_package (Boost 1.58 REQUIRED
84
- COMPONENTS
83
+ set (PROXYGEN_BOOST_COMPONENTS
85
84
iostreams
86
85
context
87
86
filesystem
88
87
program_options
89
88
regex
90
- system
91
89
thread
92
90
chrono
93
91
)
92
+ find_package (Boost 1.58 REQUIRED COMPONENTS ${PROXYGEN_BOOST_COMPONENTS} )
93
+ if (Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69 )
94
+ list (APPEND PROXYGEN_BOOST_COMPONENTS system )
95
+ find_package (Boost 1.58 REQUIRED COMPONENTS ${PROXYGEN_BOOST_COMPONENTS} )
96
+ endif ()
97
+ string (REPLACE ";" " " PROXYGEN_BOOST_COMPONENTS "${PROXYGEN_BOOST_COMPONENTS} " )
94
98
95
99
list (APPEND
96
100
_PROXYGEN_COMMON_COMPILE_OPTIONS
Original file line number Diff line number Diff line change @@ -31,16 +31,7 @@ find_dependency(Fizz)
31
31
find_dependency (ZLIB )
32
32
find_dependency (OpenSSL )
33
33
find_dependency (Threads )
34
- find_dependency (Boost 1.58 REQUIRED
35
- COMPONENTS
36
- iostreams
37
- context
38
- filesystem
39
- program_options
40
- regex
41
- system
42
- thread
43
- )
34
+ find_dependency (Boost 1.58 REQUIRED COMPONENTS @PROXYGEN_BOOST_COMPONENTS@ )
44
35
45
36
if (NOT TARGET proxygen::proxygen )
46
37
include ("${CMAKE_CURRENT_LIST_DIR} /proxygen-targets.cmake" )
You can’t perform that action at this time.
0 commit comments