feat: added pthread support

This commit is contained in:
KamilM1205 2026-03-27 22:06:26 +04:00
parent cb28f8c8b9
commit 83980581bc

View file

@ -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)