Skip to content

Commit

Permalink
make the ticker example work with boost 1.83.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijs authored and klemens-morgenstern committed Sep 7, 2023
1 parent e3eb317 commit ab18a58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ endif()
if (NOT BOOST_ASYNC_BUILD_INLINE)
find_package(Threads REQUIRED)
# Boost 1.82 is the first with a Boost.ASIO with necessary support
find_package(Boost 1.82 REQUIRED system OPTIONAL_COMPONENTS json context)
find_package(Boost 1.82 REQUIRED system OPTIONAL_COMPONENTS json context url)
if (BOOST_ASYNC_USE_BOOST_CONTAINER)
find_package(Boost REQUIRED container)
endif()
Expand Down
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ foreach(SRC ${ALL_EXAMPLES})
if (NAME STREQUAL ticker)
if (TARGET Boost::json)
add_executable(boost_async_example_${NAME} ${SRC} )
target_link_libraries(boost_async_example_${NAME} PUBLIC Boost::async Boost::json)
target_link_libraries(boost_async_example_${NAME} PUBLIC Boost::async Boost::json Boost::url)
target_compile_definitions(boost_async_example_${NAME} PUBLIC)
endif()
continue()
Expand Down
2 changes: 1 addition & 1 deletion example/ticker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <boost/range/iterator_range.hpp>
#include <boost/unordered_map.hpp>
// cause cmake
#include <boost/url/src.hpp>
#include <boost/url.hpp>

#include <list>
#include <iostream>
Expand Down

0 comments on commit ab18a58

Please sign in to comment.