From b9902f61896c74f2d873aaa5fe8b339344adefbb Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 13 Sep 2022 10:06:58 -0700 Subject: [PATCH] explicitly link with pthread --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e54627e..fdff97de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,7 +88,7 @@ add_executable(newserv src/Version.cc ) target_include_directories(newserv PUBLIC ${LIBEVENT_INCLUDE_DIR}) -target_link_libraries(newserv phosg ${LIBEVENT_LIBRARIES}) +target_link_libraries(newserv phosg ${LIBEVENT_LIBRARIES} pthread) if(RESOURCE_FILE_FOUND) target_compile_definitions(newserv PUBLIC HAVE_RESOURCE_FILE)