From 684392a0f3438fd05a76791033e6bada5b267df9 Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sat, 18 Jan 2025 11:54:09 -0600 Subject: [PATCH] Try to fix pthread link issue --- tests/ExtraTests/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt index 52d1f0f8c7..db9897b0a5 100644 --- a/tests/ExtraTests/CMakeLists.txt +++ b/tests/ExtraTests/CMakeLists.txt @@ -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