Module: kamailio Branch: master Commit: acae32534942bd50436ec5e615193bd8f55f42cc URL: https://github.com/kamailio/kamailio/commit/acae32534942bd50436ec5e615193bd8f55f42cc
Author: Xenofon Karamanos <x...@gilawa.com> Committer: Xenofon Karamanos <x...@gilawa.com> Date: 2025-08-18T09:42:04Z websocket: cmake: Replace definition as an option for visibility - EMBEDDED_UTF8_DECODE option --- Modified: src/modules/websocket/CMakeLists.txt --- Diff: https://github.com/kamailio/kamailio/commit/acae32534942bd50436ec5e615193bd8f55f42cc.diff Patch: https://github.com/kamailio/kamailio/commit/acae32534942bd50436ec5e615193bd8f55f42cc.patch --- diff --git a/src/modules/websocket/CMakeLists.txt b/src/modules/websocket/CMakeLists.txt index 69aece14d24..d611fe1bd3e 100644 --- a/src/modules/websocket/CMakeLists.txt +++ b/src/modules/websocket/CMakeLists.txt @@ -2,9 +2,10 @@ file(GLOB MODULE_SOURCES "*.c") add_library(${module_name} SHARED ${MODULE_SOURCES}) -# TODO: Verify if correct -if(EMBEDDED_UTF8_DECODE EQUAL 0) - target_link_libraries(${module_name} PRIVATE unistring) -else() +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() + target_link_libraries(${module_name} PRIVATE unistring) endif() _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!