Module: kamailio Branch: master Commit: 874183da2a6000f5f8e755e19338b74757e09bf0 URL: https://github.com/kamailio/kamailio/commit/874183da2a6000f5f8e755e19338b747...
Author: Xenofon Karamanos xk@gilawa.com Committer: Xenofon Karamanos xk@gilawa.com Date: 2025-01-22T14:54:28Z
cmake/phonenum: Remove find_package as it's broken for newer distributions
- Search for the library manually
---
Modified: src/modules/phonenum/CMakeLists.txt
---
Diff: https://github.com/kamailio/kamailio/commit/874183da2a6000f5f8e755e19338b747... Patch: https://github.com/kamailio/kamailio/commit/874183da2a6000f5f8e755e19338b747...
---
diff --git a/src/modules/phonenum/CMakeLists.txt b/src/modules/phonenum/CMakeLists.txt index de2c23984fb..1003c5115b3 100644 --- a/src/modules/phonenum/CMakeLists.txt +++ b/src/modules/phonenum/CMakeLists.txt @@ -3,14 +3,14 @@ file(GLOB MODULE_SOURCES "*.c") add_library(${module_name} SHARED ${MODULE_SOURCES})
# TODO: Support for find_package added after version 8.13.4 -find_package(libphonenumber CONFIG QUIET) +# TODO: Debian and Ubuntu are missing static installation of libphonenumber +# and find_package() does not work for them. +# find_package(libphonenumber CONFIG QUIET) if(libphonenumber_FOUND) - # message(STATUS "Found libphonenumber: ${libphonenumber_INCLUDE_DIRS}") + message(STATUS "Found libphonenumber: ${libphonenumber_INCLUDE_DIRS}") + message(STATUS "Found libphonenumber: ${libphonenumber_LIBRARY}") else() - message( - STATUS - "libphonenumber not found with find_package()... looking with other methods" - ) + message(STATUS "Looking for libphonenumber...") # add additional logic here to handle the missing dependency TODO: Fix lint # issue find_library(libphonenumber_LIBRARY NAMES phonenumber)