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

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@gilawa.com>
Date: 2025-08-19T17:13:13Z

cmake: Provide a clear error

- No folder with module_name found
- No CMakeLists.txt file found in said folder

---

Modified: src/modules/CMakeLists.txt

---

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

---

diff --git a/src/modules/CMakeLists.txt b/src/modules/CMakeLists.txt
index 18dd8fe094c..b7eaccd9228 100644
--- a/src/modules/CMakeLists.txt
+++ b/src/modules/CMakeLists.txt
@@ -126,7 +126,9 @@ function(add_module_group group_name group_modules)
         endif()
 
       else()
-        message(FATAL_ERROR "Module directory ${module_path} does not exist.")
+        message(
+          FATAL_ERROR "Module directory ${module_path} does not exist or 
CMakeLists.txt is missing."
+        )
       endif()
     endif()
   endforeach()

_______________________________________________
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