File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ endif()
7070if (CLI_UseBoostAsio)
7171 set (Boost_NO_BOOST_CMAKE ON )
7272 add_definitions ( -DBOOST_ALL_NO_LIB ) # for windows
73- find_package (Boost 1.55 REQUIRED COMPONENTS system )
73+ find_package (Boost 1.66 REQUIRED COMPONENTS system )
7474endif ()
7575
7676if (CLI_UseStandaloneAsio)
@@ -155,4 +155,4 @@ if(NOT CMAKE_SKIP_INSTALL_RULES)
155155 FILES "${CMAKE_CURRENT_BINARY_DIR} /cli.pc"
156156 DESTINATION ${PKGCONFIG_INSTALL_DIR}
157157 )
158- endif ()
158+ endif ()
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ A cross-platform header only C++14 library for interactive command line interfac
3232
3333The library has no dependencies if you don't need remote sessions.
3434
35- The library depends on asio (either the standalone version or the boost version)
35+ The library depends on asio (either the standalone version or the boost version >= 1.66 )
3636* only* to provide telnet server (i.e., remote sessions).
3737
3838## Installation
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ set(Boost_NO_BOOST_CMAKE ON)
3737add_definitions ( -DBOOST_ALL_NO_LIB ) # for windows
3838
3939# finds boost, triggers an error otherwise
40- find_package (Boost 1.55 REQUIRED COMPONENTS unit_test_framework )
40+ find_package (Boost 1.66 REQUIRED COMPONENTS unit_test_framework system )
4141
4242# finds standalone asio, triggers an error otherwise
4343find_path (STANDALONE_ASIO_INCLUDE_PATH NAMES "asio.hpp" HINTS ${ASIO_INCLUDEDIR} )
@@ -66,7 +66,7 @@ target_include_directories(test_suite SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
6666# indicates the shared library variant
6767target_compile_definitions (test_suite PRIVATE "BOOST_TEST_DYN_LINK=1" )
6868# indicates the link paths
69- target_link_libraries (test_suite ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} standalone_asio_test cli::cli )
69+ target_link_libraries (test_suite ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} Boost::system standalone_asio_test cli::cli )
7070
7171# declares a test with our executable
7272add_test (NAME cli_test COMMAND test_suite )
You can’t perform that action at this time.
0 commit comments