Skip to content

Commit 1144a9d

Browse files
committed
Fix CI failure by adding missing Boost dependencies to CMakeLists.txt
1 parent 83f1064 commit 1144a9d

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,19 @@ set(BOOST_SRC_DIR ${DEFAULT_BOOST_SRC_DIR} CACHE STRING "Boost source dir to use
5757
set(BOOST_BEAST2_DEPENDENCIES
5858
Boost::asio
5959
Boost::assert
60+
Boost::buffers
61+
Boost::capy
6062
Boost::config
63+
Boost::core
64+
Boost::describe
6165
Boost::http_proto
66+
Boost::json
67+
Boost::mp11
68+
Boost::static_assert
6269
Boost::system
6370
Boost::throw_exception
71+
Boost::url
72+
Boost::variant2
6473
)
6574

6675
foreach (BOOST_BEAST2_DEPENDENCY ${BOOST_BEAST2_DEPENDENCIES})
@@ -70,10 +79,10 @@ foreach (BOOST_BEAST2_DEPENDENCY ${BOOST_BEAST2_DEPENDENCIES})
7079
endforeach ()
7180
# Conditional dependencies
7281
if (BOOST_BEAST2_BUILD_TESTS)
73-
set(BOOST_BEAST2_UNIT_TEST_LIBRARIES beast url)
82+
set(BOOST_BEAST2_UNIT_TEST_LIBRARIES beast)
7483
endif ()
7584
if (BOOST_BEAST2_BUILD_EXAMPLES)
76-
set(BOOST_BEAST2_EXAMPLE_LIBRARIES json program_options scope url multiprecision)
85+
set(BOOST_BEAST2_EXAMPLE_LIBRARIES program_options scope multiprecision)
7786
endif ()
7887
# Complete dependency list
7988
set(BOOST_INCLUDE_LIBRARIES ${BOOST_BEAST2_INCLUDE_LIBRARIES} ${BOOST_BEAST2_UNIT_TEST_LIBRARIES} ${BOOST_BEAST2_EXAMPLE_LIBRARIES})
@@ -115,7 +124,7 @@ if (BOOST_BEAST2_IS_ROOT)
115124
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${BOOST_SRC_DIR}/tools/cmake/include")
116125
else ()
117126
# From Boost Package
118-
find_package(Boost REQUIRED COMPONENTS buffers http_proto program_options scope url)
127+
find_package(Boost REQUIRED COMPONENTS buffers capy http_proto json program_options scope system url)
119128
foreach (BOOST_INCLUDE_LIBRARY ${BOOST_INCLUDE_LIBRARIES})
120129
if (NOT TARGET Boost::${BOOST_INCLUDE_LIBRARY})
121130
add_library(Boost::${BOOST_INCLUDE_LIBRARY} ALIAS Boost::headers)

0 commit comments

Comments
 (0)