diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | docs/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c3ac71bf80..52a092734f0 100644 --- a/CMakeLists.txt +++ b/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/docs/CMakeLists.txt b/docs/CMakeLists.txt index eaa175062b6..55d867f247d 100644 --- a/docs/CMakeLists.txt +++ b/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 |