Module: kamailio Branch: master Commit: cd60aaa5a98ffec22fe77ade300631bf0c1de00f URL: https://github.com/kamailio/kamailio/commit/cd60aaa5a98ffec22fe77ade300631bf0c1de00f
Author: Xenofon Karamanos <[email protected]> Committer: Xenofon Karamanos <[email protected]> Date: 2026-02-25T14:55:22+02:00 presence: cmake: ICU only for darwin --- Modified: src/modules/presence/CMakeLists.txt --- Diff: https://github.com/kamailio/kamailio/commit/cd60aaa5a98ffec22fe77ade300631bf0c1de00f.diff Patch: https://github.com/kamailio/kamailio/commit/cd60aaa5a98ffec22fe77ade300631bf0c1de00f.patch --- diff --git a/src/modules/presence/CMakeLists.txt b/src/modules/presence/CMakeLists.txt index ef19545fcb2..64b61b3b8f0 100644 --- a/src/modules/presence/CMakeLists.txt +++ b/src/modules/presence/CMakeLists.txt @@ -3,6 +3,12 @@ file(GLOB MODULE_SOURCES "*.c") add_library(${module_name} SHARED ${MODULE_SOURCES}) find_package(LibXml2 REQUIRED) -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!
