Module: kamailio
Branch: 6.0
Commit: b4cde3ba4bb36da81f8ac8c1aceae2bab7bd63f1
URL: 
https://github.com/kamailio/kamailio/commit/b4cde3ba4bb36da81f8ac8c1aceae2bab7bd63f1

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-03-05T08:44:37+01:00

db2_ldap: cmake - link libldap

(cherry picked from commit ce7c002c6ccf6f7b0a369c73a66c25b566080420)
(cherry picked from commit 5f02ed54a24e08b0ebbf9816f15c80213f3b666d)

---

Modified: src/modules/db2_ldap/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/b4cde3ba4bb36da81f8ac8c1aceae2bab7bd63f1.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b4cde3ba4bb36da81f8ac8c1aceae2bab7bd63f1.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