From 3cb8651881054545bc0c02637751315650f1656f Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Wed, 22 Jun 2022 22:25:04 -0400 Subject: [PATCH] ship c++ tests need to link to boost system prior to 1.69 --- CMakeLists.txt | 2 +- tests/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1a94586a8..a316168e66 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ set(Boost_USE_MULTITHREADED ON) set( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" ) # Most boost deps get implictly picked up via fc, as just about everything links to fc. In addition we pick up # the pthread dependency through fc. -find_package(Boost 1.67 REQUIRED COMPONENTS program_options unit_test_framework) +find_package(Boost 1.67 REQUIRED COMPONENTS program_options unit_test_framework system) if( APPLE AND UNIX ) # Apple Specific Options Here diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 56a38d7c0e..d2523482ee 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -88,9 +88,9 @@ endif() find_package(Threads) add_executable(ship_client ship_client.cpp) -target_link_libraries(ship_client abieos Boost::program_options Threads::Threads) +target_link_libraries(ship_client abieos Boost::program_options Boost::system Threads::Threads) add_executable(ship_streamer ship_streamer.cpp) -target_link_libraries(ship_streamer abieos Boost::program_options Threads::Threads) +target_link_libraries(ship_streamer abieos Boost::program_options Boost::system Threads::Threads) add_test(NAME ship_test COMMAND tests/ship_test.py -v --num-clients 1 --num-requests 5000 --clean-run --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) set_property(TEST ship_test PROPERTY LABELS nonparallelizable_tests)