Module: kamailio Branch: 6.0 Commit: 3c5e7b5031951870457f5e3b96b1449b1c1d9613 URL: https://github.com/kamailio/kamailio/commit/3c5e7b5031951870457f5e3b96b1449b1c1d9613
Author: drTr0jan <drtr0...@yandex.ru> Committer: Henning Westerholt <h...@gilawa.com> Date: 2025-03-10T20:26:34Z dialplan: cmake - add pcre2 (cherry picked from commit 1f3b45056caf298062c6fbe683660ac6c158331a) --- Modified: src/modules/dialplan/CMakeLists.txt --- Diff: https://github.com/kamailio/kamailio/commit/3c5e7b5031951870457f5e3b96b1449b1c1d9613.diff Patch: https://github.com/kamailio/kamailio/commit/3c5e7b5031951870457f5e3b96b1449b1c1d9613.patch --- diff --git a/src/modules/dialplan/CMakeLists.txt b/src/modules/dialplan/CMakeLists.txt index 9c8de963961..9d716f3ebb0 100644 --- a/src/modules/dialplan/CMakeLists.txt +++ b/src/modules/dialplan/CMakeLists.txt @@ -1,3 +1,14 @@ file(GLOB MODULE_SOURCES "*.c") add_library(${module_name} SHARED ${MODULE_SOURCES}) + +find_package(pcre2 QUIET) +if(NOT pcre2_FOUND) + message(STATUS "PCRE2 library not found... looking with pkg-config") + find_package(PkgConfig REQUIRED) + # TODO: verify we want 8-bit libpcre2 + pkg_check_modules(pcre2 REQUIRED IMPORTED_TARGET libpcre2-8) + add_library(PCRE2::8BIT ALIAS PkgConfig::pcre2) +endif() + +target_link_libraries(${module_name} PRIVATE PCRE2::8BIT) _______________________________________________ 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!