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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-14T19:25:39+01:00

tls: CMakeLists.txt - added scope to target_compile_definitions()

---

Modified: src/modules/tls/CMakeLists.txt

---

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

---

diff --git a/src/modules/tls/CMakeLists.txt b/src/modules/tls/CMakeLists.txt
index bf59de34f14..7d758e53b0f 100644
--- a/src/modules/tls/CMakeLists.txt
+++ b/src/modules/tls/CMakeLists.txt
@@ -18,7 +18,7 @@ find_package(Threads REQUIRED)
 # will fail and ask to set variables like OPENSSL_ROOT_DIR, OPENSSL_INCLUDE_DIR
 # and LIBRARIES
 if(LIBSSL_STATIC)
-  target_compile_definitions(${module_name} KSR_LIBSSL_STATIC)
+  target_compile_definitions(${module_name} PRIVATE KSR_LIBSSL_STATIC)
   if(LIBSSL_STATIC_SRCLIB)
     target_include_directories(${module_name} PRIVATE 
${LIBSSL_STATIC_SRCPATH}/include)
     target_link_directories(${module_name} PRIVATE ${LIBSSL_STATIC_SRCPATH})

_______________________________________________
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