File tree Expand file tree Collapse file tree 4 files changed +27
-13
lines changed
Expand file tree Collapse file tree 4 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,11 @@ jobs:
142142 - name : Run unit tests
143143 run : RETRY_FAILED=3 CMAKE_BUILD_DIRECTORY=./build ./run-unit-tests.sh
144144
145+ - name : Build with Boost.Asio
146+ run : |
147+ cmake -B build-boost-asio -DINTEGRATE_VCPKG=ON -DBUILD_TESTS=ON
148+ cmake --build build-boost-asio -j8
149+
145150 - name : Build perf tools
146151 run : |
147152 cmake -B build -DINTEGRATE_VCPKG=ON -DBUILD_TESTS=ON -DBUILD_PERF_TOOLS=ON
Original file line number Diff line number Diff line change 1919
2020cmake_minimum_required (VERSION 3.13)
2121
22- option (USE_ASIO "Use Asio instead of Boost.Asio" OFF )
23-
2422option (INTEGRATE_VCPKG "Integrate with Vcpkg" OFF )
2523if (INTEGRATE_VCPKG)
26- set (USE_ASIO ON )
24+ option (USE_ASIO "Use Asio instead of Boost.Asio" ON )
2725 if (NOT CMAKE_TOOLCHAIN_FILE)
2826 set (CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR} /vcpkg/scripts/buildsystems/vcpkg.cmake" )
2927 endif ()
28+ if (NOT USE_ASIO)
29+ list (APPEND VCPKG_MANIFEST_FEATURES "boost-asio" )
30+ endif ()
31+ else ()
32+ option (USE_ASIO "Use Asio instead of Boost.Asio" OFF )
3033endif ()
34+ message (STATUS "USE_ASIO: ${USE_ASIO} " )
3135
3236option (BUILD_TESTS "Build tests" ON )
3337message (STATUS "BUILD_TESTS: " ${BUILD_TESTS} )
Original file line number Diff line number Diff line change 99 "features" : [
1010 " openssl"
1111 ],
12- "version>=" : " 1.28.2 "
12+ "version>=" : " 1.32.0 "
1313 },
1414 {
1515 "name" : " boost-accumulators" ,
16- "version>=" : " 1.83 .0"
16+ "version>=" : " 1.88 .0"
1717 },
1818 {
1919 "name" : " boost-format" ,
20- "version>=" : " 1.83 .0"
20+ "version>=" : " 1.88 .0"
2121 },
2222 {
2323 "name" : " boost-property-tree" ,
24- "version>=" : " 1.83 .0"
24+ "version>=" : " 1.88 .0"
2525 },
2626 {
2727 "name" : " curl" ,
6161 }
6262 ],
6363 "features" : {
64+ "boost-asio" : {
65+ "description" : " Use Boost.Asio instead of standalone Asio" ,
66+ "dependencies" : [
67+ {
68+ "name" : " boost-asio" ,
69+ "version>=" : " 1.88.0"
70+ }
71+ ]
72+ },
6473 "perf" : {
6574 "description" : " Build Performance Tool" ,
6675 "dependencies" : [
6776 {
6877 "name" : " boost-program-options" ,
69- "version>=" : " 1.83 .0"
78+ "version>=" : " 1.88 .0"
7079 }
7180 ]
7281 },
8190 }
8291 },
8392 "overrides" : [
84- {
85- "name" : " asio" ,
86- "version" : " 1.28.2"
87- },
8893 {
8994 "name" : " protobuf" ,
9095 "version" : " 3.21.12"
You can’t perform that action at this time.
0 commit comments