Module: kamailio
Branch: 6.1
Commit: 5f02ed54a24e08b0ebbf9816f15c80213f3b666d
URL: 
https://github.com/kamailio/kamailio/commit/5f02ed54a24e08b0ebbf9816f15c80213f3b666d

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-03-04T17:34:56+01:00

db2_ldap: cmake - link libldap

(cherry picked from commit ce7c002c6ccf6f7b0a369c73a66c25b566080420)

---

Modified: src/modules/db2_ldap/CMakeLists.txt

---

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

---

diff --git a/src/modules/db2_ldap/CMakeLists.txt 
b/src/modules/db2_ldap/CMakeLists.txt
index eddf39f6b88..96af6452a2b 100644
--- a/src/modules/db2_ldap/CMakeLists.txt
+++ b/src/modules/db2_ldap/CMakeLists.txt
@@ -13,4 +13,4 @@ find_package(Ldap REQUIRED)
 # LDAP_DEPRECATED is required for LDAP support else it will throw compile error
 target_compile_definitions(${module_name} PRIVATE OPENLDAP23 LDAP_DEPRECATED)
 target_include_directories(${module_name} PRIVATE ${Ldap_INCLUDE_DIRS})
-target_link_libraries(${module_name} PRIVATE ${LDAP_LIBRARIES} 
libsasl2::libsasl2)
+target_link_libraries(${module_name} PRIVATE Ldap::Ldap libsasl2::libsasl2)

_______________________________________________
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