Skip to content

Commit

Permalink
Try to fix pthread link issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Jan 18, 2025
1 parent 1f5978c commit 684392a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ExtraTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 684392a

Please sign in to comment.