Module: kamailio Branch: master Commit: 376fec08a4233d574d2097ca0116584570047ec2 URL: https://github.com/kamailio/kamailio/commit/376fec08a4233d574d2097ca0116584570047ec2
Author: Xenofon Karamanos <[email protected]> Committer: Xenofon Karamanos <[email protected]> Date: 2026-02-25T14:55:22+02:00 rls: cmake: ICU only for darwin --- Modified: src/modules/rls/CMakeLists.txt --- Diff: https://github.com/kamailio/kamailio/commit/376fec08a4233d574d2097ca0116584570047ec2.diff Patch: https://github.com/kamailio/kamailio/commit/376fec08a4233d574d2097ca0116584570047ec2.patch --- diff --git a/src/modules/rls/CMakeLists.txt b/src/modules/rls/CMakeLists.txt index 622df193530..64b61b3b8f0 100644 --- a/src/modules/rls/CMakeLists.txt +++ b/src/modules/rls/CMakeLists.txt @@ -4,7 +4,11 @@ add_library(${module_name} SHARED ${MODULE_SOURCES}) find_package(LibXml2 REQUIRED) -# TODO: Only for darwin? -find_package(ICU QUIET COMPONENTS uc) - -target_link_libraries(${module_name} PRIVATE LibXml2::LibXml2 ICU::uc) +# ICU is a required dependency for MacOS (darwin) for libxml2. +# https://github.com/kamailio/kamailio/commit/d3208e1859051eb09013f855126f7f5f5ec47ab8 +if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + find_package(ICU REQUIRED COMPONENTS uc) + target_link_libraries(${module_name} PRIVATE ICU::uc) +endif() + +target_link_libraries(${module_name} PRIVATE LibXml2::LibXml2) _______________________________________________ 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!
