2
0
mirror of https://github.com/boostorg/redis.git synced 2026-01-19 04:42:09 +00:00

In-tree cmake builds instead of FindBoost.

This commit is contained in:
Marcelo Zimbres
2023-12-28 23:09:39 +01:00
committed by Marcelo
parent 96da11a2cc
commit 4257b2eaec
4 changed files with 73 additions and 8 deletions

View File

@@ -10,6 +10,9 @@ macro(make_example EXAMPLE_NAME STANDARD)
if (${STANDARD} STREQUAL "20")
target_link_libraries(${EXAMPLE_NAME} PRIVATE examples_main)
endif()
if (${STANDARD} STREQUAL "20")
target_link_libraries(${EXAMPLE_NAME} PRIVATE Boost::json)
endif()
endmacro()
macro(make_testable_example EXAMPLE_NAME STANDARD)
@@ -46,4 +49,4 @@ endif()
if (NOT MSVC)
make_example(cpp20_chat_room 20)
endif()
endif()

View File

@@ -15,13 +15,11 @@
#if defined(BOOST_ASIO_HAS_CO_AWAIT)
#define BOOST_JSON_NO_LIB
#define BOOST_CONTAINER_NO_LIB
#include <boost/json/serialize.hpp>
#include <boost/json/parse.hpp>
#include <boost/json/value_from.hpp>
#include <boost/json/value_to.hpp>
#include <boost/redis/resp3/serialization.hpp>
#include <boost/json/src.hpp>
namespace asio = boost::asio;
using namespace boost::describe;