Update test/CMakeLists.txt

This commit is contained in:
Peter Dimov
2023-06-02 04:32:42 +03:00
parent 0e71b6158d
commit 3b96d237c0
2 changed files with 8 additions and 1 deletions

View File

@ -38,6 +38,13 @@ boost_test(TYPE run SOURCES serialization_split_free_test.cpp)
boost_test(TYPE run SOURCES serialization_split_member_test.cpp)
boost_test(TYPE run SOURCES serialization_construct_data_test.cpp)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
set(BOOST_TEST_LINK_LIBRARIES Boost::core Threads::Threads)
boost_test(TYPE run SOURCES yield_prim_pthread_cancel_test.cpp)
endif()
add_subdirectory(swap)

View File

@ -390,7 +390,7 @@ run sp_thread_pause_test.cpp ;
run sp_thread_yield_test.cpp ;
run sp_thread_sleep_test.cpp ;
run yield_prim_windows_h_test.cpp ;
run yield_prim_pthread_cancel_test.cpp ;
run yield_prim_pthread_cancel_test.cpp : ;
use-project /boost/core/swap : ./swap ;
build-project ./swap ;