From b2a12759b20ab7b2b3abc9360ea663bfd6d1565e Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Tue, 23 Aug 2016 18:07:16 +0000 Subject: [PATCH] [CMake] [OCaml] Add -DLLVM_ENABLE_OCAMLDOC switch Patch by Michael Gorny. llvm-svn: 279544 --- llvm/CMakeLists.txt | 1 + llvm/docs/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 9c3ac71..52a0927 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -454,6 +454,7 @@ option (LLVM_BUILD_DOCS "Build the llvm documentation." OFF) 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) diff --git a/llvm/docs/CMakeLists.txt b/llvm/docs/CMakeLists.txt index eaa1750..55d867f 100644 --- a/llvm/docs/CMakeLists.txt +++ b/llvm/docs/CMakeLists.txt @@ -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 -- 2.7.4