Skip to content

Commit b2a1275

Browse files
committed
[CMake] [OCaml] Add -DLLVM_ENABLE_OCAMLDOC switch
Patch by Michael Gorny. llvm-svn: 279544
1 parent 6946e2a commit b2a1275

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ option (LLVM_BUILD_DOCS "Build the llvm documentation." OFF)
454454
option (LLVM_INCLUDE_DOCS "Generate build targets for llvm documentation." ON)
455455
option (LLVM_ENABLE_DOXYGEN "Use doxygen to generate llvm API documentation." OFF)
456456
option (LLVM_ENABLE_SPHINX "Use Sphinx to generate llvm documentation." OFF)
457+
option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON)
457458

458459
option (LLVM_BUILD_EXTERNAL_COMPILER_RT
459460
"Build compiler-rt as an external project." OFF)

llvm/docs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if (LLVM_ENABLE_SPHINX)
115115
endif()
116116

117117
list(FIND LLVM_BINDINGS_LIST ocaml uses_ocaml)
118-
if( NOT uses_ocaml LESS 0 )
118+
if( NOT uses_ocaml LESS 0 AND LLVM_ENABLE_OCAMLDOC )
119119
set(doc_targets
120120
ocaml_llvm
121121
ocaml_llvm_all_backends

0 commit comments

Comments
 (0)