Module: kamailio
Branch: master
Commit: 45a81b840637d7bb2c3387ab33309c8fb81f1a0a
URL:
https://github.com/kamailio/kamailio/commit/45a81b840637d7bb2c3387ab33309c8…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Committer: Xenofon Karamanos <xk(a)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/45a81b840637d7bb2c3387ab33309c8…
Patch:
https://github.com/kamailio/kamailio/commit/45a81b840637d7bb2c3387ab33309c8…
---
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)