Module: kamailio
Branch: master
Commit: e610d8c9726f781d4e80069d64db02b5517df391
URL: 
https://github.com/kamailio/kamailio/commit/e610d8c9726f781d4e80069d64db02b5517df391

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-06-09T12:02:44+02:00

evapi: CMakeLists.txt - link with libevent

---

Modified: src/modules/evapi/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/e610d8c9726f781d4e80069d64db02b5517df391.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e610d8c9726f781d4e80069d64db02b5517df391.patch

---

diff --git a/src/modules/evapi/CMakeLists.txt b/src/modules/evapi/CMakeLists.txt
index 9e08419496b..1ec771177be 100644
--- a/src/modules/evapi/CMakeLists.txt
+++ b/src/modules/evapi/CMakeLists.txt
@@ -2,6 +2,8 @@ file(GLOB MODULE_SOURCES "*.c")
 
 add_library(${module_name} SHARED ${MODULE_SOURCES})
 
-find_package(Libev REQUIRED)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(EVENT REQUIRED IMPORTED_TARGET libevent)
+add_library(event::event ALIAS PkgConfig::EVENT)
 
-target_link_libraries(${module_name} PRIVATE Libev::Libev)
+target_link_libraries(${module_name} PRIVATE event::event)

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to