Skip to content

Commit 8eceadc

Browse files
committed
Add boost minimum version to CMakeLists
1 parent f45cb45 commit 8eceadc

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ endif()
7070
if (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)
7474
endif()
7575

7676
if (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()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ A cross-platform header only C++14 library for interactive command line interfac
3232

3333
The 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

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ set(Boost_NO_BOOST_CMAKE ON)
3737
add_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
4343
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})
6666
# indicates the shared library variant
6767
target_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
7272
add_test(NAME cli_test COMMAND test_suite)

0 commit comments

Comments
 (0)