Try to fix pthread link issue

This commit is contained in:
Jeremy Rifkin 2025-01-18 11:54:09 -06:00
parent 1f5978cbe3
commit 684392a0f3
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -480,7 +480,8 @@ set_tests_properties(
)
add_executable(Multithreading ${TESTS_DIR}/X37-Multithreading.cpp)
target_link_libraries(Multithreading PRIVATE Catch2::Catch2WithMain)
find_package(Threads REQUIRED)
target_link_libraries(Multithreading PRIVATE Catch2::Catch2WithMain Threads::Threads)
target_compile_features(Multithreading PRIVATE cxx_std_11)
add_test(
NAME Reporters::Multithreading