1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-24 20:41:03 +02:00

Fix Cmake find issue in libevent (#1466)

Fixed an issue in libevent's CMake configuration where pthreads were not
correctly added to the optional components list, leading to a
compilation error. #1448

Co-authored-by: linwenchen <wenchen0803@qq.com>
This commit is contained in:
NO NAME 2024-04-09 17:51:31 +08:00 committed by GitHub
parent 0fc60d48fa
commit 3f66c028fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,6 +40,9 @@ endif()
find_package(Libevent CONFIG)
if(Libevent_FOUND)
list(APPEND COMMON_LIBS libevent::core libevent::extra libevent::openssl)
if(NOT WIN32)
list(APPEND COMMON_LIBS libevent::pthreads)
endif()
else()
find_package(Libevent MODULE)
if(Libevent_FOUND)