Module: kamailio
Branch: master
Commit: 1c4de2410f8f5d3f600c96ac823c88911c58ae22
URL: 
https://github.com/kamailio/kamailio/commit/1c4de2410f8f5d3f600c96ac823c88911c58ae22

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@gilawa.com>
Date: 2025-05-19T10:48:36Z

cmake: Quiet fail for rabbit-mq

- Remove extra find_package(pkgconfig)
- Remove required version

---

Modified: src/modules/kazoo/CMakeLists.txt
Modified: src/modules/rabbitmq/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/1c4de2410f8f5d3f600c96ac823c88911c58ae22.diff
Patch: 
https://github.com/kamailio/kamailio/commit/1c4de2410f8f5d3f600c96ac823c88911c58ae22.patch

---

diff --git a/src/modules/kazoo/CMakeLists.txt b/src/modules/kazoo/CMakeLists.txt
index 44b2e0b3c0e..d05ff75464c 100644
--- a/src/modules/kazoo/CMakeLists.txt
+++ b/src/modules/kazoo/CMakeLists.txt
@@ -18,7 +18,8 @@ pkg_check_modules(json-c REQUIRED IMPORTED_TARGET json-c)
 add_library(json-c::json-c ALIAS PkgConfig::json-c)
 # endif()
 
-find_package(rabbitmq-c 0.13)
+# rabbitmq provides cmake support for versions 0.13 and above.
+find_package(rabbitmq-c QUIET)
 if(NOT rabbitmq-c_FOUND)
   message(STATUS "rabbitmq-c not found. looking with pkg-config")
   find_package(PkgConfig REQUIRED)
@@ -26,7 +27,6 @@ if(NOT rabbitmq-c_FOUND)
   add_library(rabbitmq::rabbitmq ALIAS PkgConfig::rabbitmq-c)
 endif()
 
-find_package(PkgConfig REQUIRED)
 pkg_check_modules(UUID REQUIRED IMPORTED_TARGET uuid)
 add_library(uuid::uuid ALIAS PkgConfig::UUID)
 
diff --git a/src/modules/rabbitmq/CMakeLists.txt 
b/src/modules/rabbitmq/CMakeLists.txt
index 9ad3b4c8112..e9bcef86b58 100644
--- a/src/modules/rabbitmq/CMakeLists.txt
+++ b/src/modules/rabbitmq/CMakeLists.txt
@@ -2,7 +2,8 @@ file(GLOB MODULE_SOURCES "*.c")
 
 add_library(${module_name} SHARED ${MODULE_SOURCES})
 
-find_package(rabbitmq-c 0.13 QUIET)
+# rabbitmq provides cmake support for versions 0.13 and above.
+find_package(rabbitmq-c QUIET)
 if(NOT rabbitmq-c_FOUND)
   message(STATUS "rabbitmq-c not found. looking with pkg-config")
   find_package(PkgConfig REQUIRED)

_______________________________________________
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!

Reply via email to