Skip to content

Commit

Permalink
Merge pull request #2 from cyanidle/main
Browse files Browse the repository at this point in the history
Add Pthreads to tests
  • Loading branch information
cyanidle authored Nov 15, 2024
2 parents a76c342 + 3c45931 commit 1010265
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ SOFTWARE.

enable_testing()

set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

add_library(rpcxx-test-deps INTERFACE)
target_link_libraries(rpcxx-test-deps INTERFACE Threads::Threads)

if(RPCXX_TEST_SANITIZERS AND NOT MSVC)
target_compile_options(rpcxx-test-deps INTERFACE -fsanitize=undefined,address)
target_link_options(rpcxx-test-deps INTERFACE -fsanitize=undefined,address)
Expand Down

0 comments on commit 1010265

Please sign in to comment.