소스 검색

cmake: Make docs install optional

Xenofon Karamanos 9 달 전
부모
커밋
763d3622fd
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      cmake/modules-docs.cmake

+ 3 - 0
cmake/modules-docs.cmake

@@ -140,6 +140,9 @@ else()
         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
       )
     endif()