feat: added pthread support
This commit is contained in:
parent
cb28f8c8b9
commit
83980581bc
1 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,9 @@ include(FetchContent)
|
||||||
|
|
||||||
find_package(OpenSSL REQUIRED)
|
find_package(OpenSSL REQUIRED)
|
||||||
|
|
||||||
|
set(THREADS_PREPER_PTHREAD_FLAG ON)
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
add_library(pigeon-core ${CORE_SRC})
|
add_library(pigeon-core ${CORE_SRC})
|
||||||
target_include_directories(pigeon-core PUBLIC ${CMAKE_CURRENT_LIST_DIR}/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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue