[llvm] r279544 - [CMake] [OCaml] Add -DLLVM_ENABLE_OCAMLDOC switch
Peter Zotov via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 11:07:17 PDT 2016
Author: whitequark
Date: Tue Aug 23 13:07:16 2016
New Revision: 279544
URL: http://llvm.org/viewvc/llvm-project?rev=279544&view=rev
Log:
[CMake] [OCaml] Add -DLLVM_ENABLE_OCAMLDOC switch
Patch by Michael Gorny.
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/docs/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=279544&r1=279543&r2=279544&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Aug 23 13:07:16 2016
@@ -454,6 +454,7 @@ option (LLVM_BUILD_DOCS "Build the llvm
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)
Modified: llvm/trunk/docs/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMakeLists.txt?rev=279544&r1=279543&r2=279544&view=diff
==============================================================================
--- llvm/trunk/docs/CMakeLists.txt (original)
+++ llvm/trunk/docs/CMakeLists.txt Tue Aug 23 13:07:16 2016
@@ -115,7 +115,7 @@ if (LLVM_ENABLE_SPHINX)
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
More information about the llvm-commits
mailing list