From 201811dc614a4787482c3bb2fa14f47112a05a34 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 18 Sep 2016 20:28:06 +0200 Subject: cmake: Link pthread library headers Signed-off-by: Michael Adam Reviewed-by: Andreas Schneider --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4b22d77..3b4d7d0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories(${CMAKE_BINARY_DIR}) add_library(socket_wrapper SHARED socket_wrapper.c) -target_link_libraries(socket_wrapper ${SWRAP_REQUIRED_LIBRARIES}) +target_link_libraries(socket_wrapper ${SWRAP_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) install( TARGETS -- cgit