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

Author: Xenofon Karamanos <[email protected]>
Committer: Xenofon Karamanos <[email protected]>
Date: 2026-01-30T14:19:48Z

websocket: cmake: Use find_package to find unistring

---

Modified: src/modules/websocket/CMakeLists.txt

---

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

---

diff --git a/src/modules/websocket/CMakeLists.txt 
b/src/modules/websocket/CMakeLists.txt
index 94aa41ac330..9d2e1594c89 100644
--- a/src/modules/websocket/CMakeLists.txt
+++ b/src/modules/websocket/CMakeLists.txt
@@ -7,9 +7,6 @@ option(EMBEDDED_UTF8_DECODE "Use embedded UTF-8 decode 
(websocket module)" OFF)
 if(EMBEDDED_UTF8_DECODE)
   target_compile_definitions(${module_name} PRIVATE EMBEDDED_UTF8_DECODE)
 else()
-  if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
-    target_include_directories(${module_name} PRIVATE /opt/local/include)
-    target_link_directories(${module_name} PRIVATE /opt/local/lib)
-  endif()
-  target_link_libraries(${module_name} PRIVATE unistring)
+  find_package(Unistring REQUIRED)
+  target_link_libraries(${module_name} PRIVATE Unistring::Unistring)
 endif()

_______________________________________________
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