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

Author: Xenofon Karamanos <[email protected]>
Committer: Xenofon Karamanos <[email protected]>
Date: 2026-02-09T08:17:25Z

cmake: netsnmp: Use correct option for discovering linking libraries

---

Modified: cmake/modules/FindNETSNMP.cmake

---

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

---

diff --git a/cmake/modules/FindNETSNMP.cmake b/cmake/modules/FindNETSNMP.cmake
index e25df1900ce..2fd4ff50078 100644
--- a/cmake/modules/FindNETSNMP.cmake
+++ b/cmake/modules/FindNETSNMP.cmake
@@ -39,7 +39,7 @@ find_program(NETSNMP_CONFIG_BIN net-snmp-config)
 
 if(NETSNMP_CONFIG_BIN)
   # Find libs required
-  execute_process(COMMAND ${NETSNMP_CONFIG_BIN} --libs OUTPUT_VARIABLE 
_NETSNMP_LIBS)
+  execute_process(COMMAND ${NETSNMP_CONFIG_BIN} --netsnmp-agent-libs 
OUTPUT_VARIABLE _NETSNMP_LIBS)
   # Strip trailing and leading whitespaces
   string(STRIP "${_NETSNMP_LIBS}" _NETSNMP_LIBS)
   # Create a list from the flags to be used in target_link_libraries and

_______________________________________________
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