Module: kamailio Branch: 6.0 Commit: f08adc567b19721b1bf515a2b1595fed28152177 URL: https://github.com/kamailio/kamailio/commit/f08adc567b19721b1bf515a2b1595fed...
Author: Xenofon Karamanos xk@gilawa.com Committer: Xenofon Karamanos 22965395+xkaraman@users.noreply.github.com Date: 2025-01-29T10:27:05Z
cmake/json: Use CONFIG mode
(cherry picked from commit 532744eebf1014939c4ccd9a6aa4e7d6fbb454ac)
---
Modified: src/modules/json/CMakeLists.txt
---
Diff: https://github.com/kamailio/kamailio/commit/f08adc567b19721b1bf515a2b1595fed... Patch: https://github.com/kamailio/kamailio/commit/f08adc567b19721b1bf515a2b1595fed...
---
diff --git a/src/modules/json/CMakeLists.txt b/src/modules/json/CMakeLists.txt index c4cbf81440c..72df4d390f5 100644 --- a/src/modules/json/CMakeLists.txt +++ b/src/modules/json/CMakeLists.txt @@ -2,7 +2,8 @@ file(GLOB MODULE_SOURCES "*.c")
add_library(${module_name} SHARED ${MODULE_SOURCES})
-find_package(json-c QUIET) +find_package(json-c CONFIG) + if(NOT json-c_FOUND) message(STATUS "json-c not found. looking with pkg-config") find_package(PkgConfig REQUIRED)