[PATCH] D23763: cmake: Add LLVM_ENABLE_OCAMLDOC to control building OCaml bindings doc

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 21 22:10:17 PDT 2016


mgorny created this revision.
mgorny added a reviewer: whitequark.
mgorny added a subscriber: llvm-commits.

Make it possible to control building of OCaml bindings documentation separately via LLVM_ENABLE_OCAMLDOC rather than implicitly enabling it when OCaml bindings are enabled and LLVM_INCLUDE_DOCS is true. This makes it possible to build OCaml bindings and other documentation parts without having additional OCaml documentation dependencies installed.


https://reviews.llvm.org/D23763

Files:
  CMakeLists.txt
  docs/CMakeLists.txt

Index: docs/CMakeLists.txt
===================================================================
--- docs/CMakeLists.txt
+++ docs/CMakeLists.txt
@@ -115,7 +115,7 @@
 endif()
 
 list(FIND LLVM_BINDINGS_LIST ocaml uses_ocaml)
-if( NOT uses_ocaml LESS 0 )
+if( NOT uses_ocaml LESS 0 AND LLVM_ENABLE_OCAMLDOC )
   set(doc_targets
         ocaml_llvm
         ocaml_llvm_all_backends
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -453,6 +453,7 @@
 option (LLVM_INCLUDE_DOCS "Generate build targets for llvm documentation." ON)
 option (LLVM_ENABLE_DOXYGEN "Use doxygen to generate llvm API documentation." OFF)
 option (LLVM_ENABLE_SPHINX "Use Sphinx to generate llvm documentation." OFF)
+option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON)
 
 option (LLVM_BUILD_EXTERNAL_COMPILER_RT
   "Build compiler-rt as an external project." OFF)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23763.68823.patch
Type: text/x-patch
Size: 934 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160822/598a5399/attachment.bin>


More information about the llvm-commits mailing list