Module: kamailio
Branch: master
Commit: 2692148d92bb8b17709eb4cbddd8e653bbf5c14a
URL:
https://github.com/kamailio/kamailio/commit/2692148d92bb8b17709eb4cbddd8e65…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Committer: Xenofon Karamanos <xk(a)gilawa.com>
Date: 2024-12-30T15:57:40Z
cmake: Install README from source tree
- module_name_doc target will only produce the formats found in the build folder.
- module_name_readme target that modifies the source tree needs to be called explicitly
---
Modified: cmake/modules-docs.cmake
---
Diff:
https://github.com/kamailio/kamailio/commit/2692148d92bb8b17709eb4cbddd8e65…
Patch:
https://github.com/kamailio/kamailio/commit/2692148d92bb8b17709eb4cbddd8e65…
---
diff --git a/cmake/modules-docs.cmake b/cmake/modules-docs.cmake
index b24ae061af2..edd7e8451d7 100644
--- a/cmake/modules-docs.cmake
+++ b/cmake/modules-docs.cmake
@@ -95,7 +95,6 @@ function(docs_add_module module_name)
add_custom_target(
${module_name}_doc
DEPENDS ${module_name}_doc_text ${module_name}_doc_html
- ${module_name}_readme
COMMENT "Processing target ${module_name}_doc")
# Each version has seperate custon commands for not recompiling all if 1 gets
@@ -146,13 +145,9 @@ function(docs_add_module module_name)
endif()
install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/${module_name}/${module_name}.txt
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/${module_name}/README
RENAME README.${module_name}
DESTINATION ${CMAKE_INSTALL_DOCDIR}/modules
- COMPONENT kamailio_docs
- # Since the depepndencies might not have been build as they are not in the
- # default target and required to build explicitly using `make
- # kamailio_docs`, allow them to be optional.
- OPTIONAL)
+ COMPONENT kamailio_docs)
endif()
endfunction()