From 83980581bcb1c07669638dc5e9b2d80ae9101ac6 Mon Sep 17 00:00:00 2001 From: KamilM1205 Date: Fri, 27 Mar 2026 22:06:26 +0400 Subject: [PATCH] feat: added pthread support --- core/src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/CMakeLists.txt b/core/src/CMakeLists.txt index 8d88684..526283c 100644 --- a/core/src/CMakeLists.txt +++ b/core/src/CMakeLists.txt @@ -9,6 +9,9 @@ include(FetchContent) find_package(OpenSSL REQUIRED) +set(THREADS_PREPER_PTHREAD_FLAG ON) +find_package(Threads REQUIRED) + add_library(pigeon-core ${CORE_SRC}) target_include_directories(pigeon-core PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src) -target_link_libraries(pigeon-core OpenSSL::SSL) +target_link_libraries(pigeon-core OpenSSL::SSL Threads::Threads)