Skip to content

Commit

Permalink
add dependency of pthread to example
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyinz committed Mar 28, 2023
1 parent 5e9770d commit fe2bf6d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

add_executable(socket_example
main.cc
socket_example.cc
)

target_link_libraries(socket_example
dobby
dobby Threads::Threads
)


Expand All @@ -13,5 +16,5 @@ add_library(socket_example_lib SHARED
)

target_link_libraries(socket_example_lib
dobby
)
dobby Threads::Threads
)

0 comments on commit fe2bf6d

Please sign in to comment.