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 <[email protected]>
@@ -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)