Skip to content

Commit

Permalink
Merge pull request #505 from eosnetworkfoundation/fix_boost_167_31x
Browse files Browse the repository at this point in the history
fix linking of c++ SHIP tests on boost versions prior to 1.69 - 3.1
  • Loading branch information
spoonincode authored Jun 23, 2022
2 parents 4a4f589 + 3cb8651 commit 16ffa28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16ffa28

Please sign in to comment.