diff --git a/CMakeLists.txt b/CMakeLists.txt index 8969743..69afd69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ endif() if (CLI_UseBoostAsio) set(Boost_NO_BOOST_CMAKE ON) add_definitions( -DBOOST_ALL_NO_LIB ) # for windows - find_package(Boost 1.55 REQUIRED COMPONENTS system) + find_package(Boost 1.66 REQUIRED COMPONENTS system) endif() if (CLI_UseStandaloneAsio) @@ -155,4 +155,4 @@ if(NOT CMAKE_SKIP_INSTALL_RULES) FILES "${CMAKE_CURRENT_BINARY_DIR}/cli.pc" DESTINATION ${PKGCONFIG_INSTALL_DIR} ) -endif() \ No newline at end of file +endif() diff --git a/README.md b/README.md index c48b9a5..e31d83d 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ A cross-platform header only C++14 library for interactive command line interfac The library has no dependencies if you don't need remote sessions. -The library depends on asio (either the standalone version or the boost version) +The library depends on asio (either the standalone version or the boost version >= 1.66) *only* to provide telnet server (i.e., remote sessions). ## Installation diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d0942e0..669b777 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -37,7 +37,7 @@ set(Boost_NO_BOOST_CMAKE ON) add_definitions( -DBOOST_ALL_NO_LIB ) # for windows # finds boost, triggers an error otherwise -find_package(Boost 1.55 REQUIRED COMPONENTS unit_test_framework) +find_package(Boost 1.66 REQUIRED COMPONENTS unit_test_framework system) # finds standalone asio, triggers an error otherwise find_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}) # indicates the shared library variant target_compile_definitions(test_suite PRIVATE "BOOST_TEST_DYN_LINK=1") # indicates the link paths -target_link_libraries(test_suite ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} standalone_asio_test cli::cli) +target_link_libraries(test_suite ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} Boost::system standalone_asio_test cli::cli) # declares a test with our executable add_test(NAME cli_test COMMAND test_suite)