File tree Expand file tree Collapse file tree 4 files changed +73
-8
lines changed Expand file tree Collapse file tree 4 files changed +73
-8
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,76 @@ target_compile_features(boost_redis INTERFACE cxx_std_17)
19
19
20
20
# Dependencies
21
21
if (BOOST_REDIS_MAIN_PROJECT )
22
- # If we're the root project, error if a dependency is not found
23
- find_package (Boost 1.83 REQUIRED COMPONENTS headers )
22
+ # TODO: Understand why we have to list all dependencies below
23
+ # instead of
24
+ #set(BOOST_INCLUDE_LIBRARIES redis)
25
+ #set(BOOST_EXCLUDE_LIBRARIES redis)
26
+ #add_subdirectory(../.. boostorg/boost EXCLUDE_FROM_ALL)
27
+
28
+ set (deps
29
+ system
30
+ assert
31
+ config
32
+ throw_exception
33
+ asio
34
+ variant2
35
+ mp11
36
+ winapi
37
+ predef
38
+ align
39
+ context
40
+ core
41
+ coroutine
42
+ static_assert
43
+ pool
44
+ date_time
45
+ smart_ptr
46
+ exception
47
+ integer
48
+ move
49
+ type_traits
50
+ algorithm
51
+ utility
52
+ io
53
+ lexical_cast
54
+ numeric/conversion
55
+ mpl
56
+ range
57
+ tokenizer
58
+ tuple
59
+ array
60
+ bind
61
+ concept_check
62
+ function
63
+ iterator
64
+ regex
65
+ unordered
66
+ preprocessor
67
+ container
68
+ conversion
69
+ container_hash
70
+ detail
71
+ optional
72
+ function_types
73
+ fusion
74
+ intrusive
75
+ describe
76
+ typeof
77
+ functional
78
+ test
79
+ json
80
+ )
81
+
82
+ foreach (dep IN LISTS deps )
83
+ add_subdirectory (../${dep} boostorg/${dep} )
84
+ endforeach ()
85
+
24
86
find_package (Threads REQUIRED )
25
87
find_package (OpenSSL REQUIRED )
26
88
target_link_libraries (boost_redis
27
89
INTERFACE
28
- Boost::headers
90
+ Boost::system
91
+ Boost::asio
29
92
Threads::Threads
30
93
OpenSSL::Crypto
31
94
OpenSSL::SSL
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ macro(make_example EXAMPLE_NAME STANDARD)
10
10
if (${STANDARD} STREQUAL "20" )
11
11
target_link_libraries (${EXAMPLE_NAME} PRIVATE examples_main )
12
12
endif ()
13
+ if (${STANDARD} STREQUAL "20" )
14
+ target_link_libraries (${EXAMPLE_NAME} PRIVATE Boost::json )
15
+ endif ()
13
16
endmacro ()
14
17
15
18
macro (make_testable_example EXAMPLE_NAME STANDARD )
@@ -46,4 +49,4 @@ endif()
46
49
47
50
if (NOT MSVC )
48
51
make_example (cpp20_chat_room 20 )
49
- endif ()
52
+ endif ()
Original file line number Diff line number Diff line change 15
15
16
16
#if defined(BOOST_ASIO_HAS_CO_AWAIT)
17
17
18
- #define BOOST_JSON_NO_LIB
19
- #define BOOST_CONTAINER_NO_LIB
20
18
#include < boost/json/serialize.hpp>
21
19
#include < boost/json/parse.hpp>
22
20
#include < boost/json/value_from.hpp>
21
+ #include < boost/json/value_to.hpp>
23
22
#include < boost/redis/resp3/serialization.hpp>
24
- #include < boost/json/src.hpp>
25
23
26
24
namespace asio = boost::asio;
27
25
using namespace boost ::describe;
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ macro(make_test TEST_NAME STANDARD)
23
23
boost_redis_src
24
24
boost_redis_tests_common
25
25
boost_redis_project_options
26
+ Boost::unit_test_framework
26
27
)
27
28
target_compile_features (${EXE_NAME} PRIVATE cxx_std_${STANDARD} )
28
29
add_test (${EXE_NAME} ${EXE_NAME} )
@@ -70,4 +71,4 @@ add_custom_target(
70
71
COMMAND ${COVERAGE_HTML_COMMAND}
71
72
COMMENT "Generating coverage report"
72
73
VERBATIM
73
- )
74
+ )
You can’t perform that action at this time.
0 commit comments