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

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@gilawa.com>
Date: 2024-12-30T15:49:04Z

cmake: Add `modules` target

- Compile only the configured modules but not the core

---

Modified: src/modules/CMakeLists.txt

---

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

---

diff --git a/src/modules/CMakeLists.txt b/src/modules/CMakeLists.txt
index 6570b4afdf2..955399ee168 100644
--- a/src/modules/CMakeLists.txt
+++ b/src/modules/CMakeLists.txt
@@ -141,6 +141,12 @@ foreach(group IN LISTS FULL_MODULE_GROUP_NAMES)
   add_module_group("${MODULES_IN_GROUP}")
 endforeach()
 
+get_property(ADDED_MODULES_LIST GLOBAL PROPERTY ADDED_MODULES_LIST)
+message(STATUS "Modules to be built: ${ADDED_MODULES_LIST}")
+# TODO: Comment is not showing. probably a bug in CMAKE
+add_custom_target(modules COMMENT "Building modules")
+add_dependencies(modules ${ADDED_MODULES_LIST})
+
 # Add a kamailio_docs target that depends on all module documentation targets
 if(BUILD_DOC)
   get_property(ADDED_MODULES_LIST GLOBAL PROPERTY ADDED_MODULES_LIST)

_______________________________________________
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