mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[CMake] [OCaml] Add -DLLVM_ENABLE_OCAMLDOC switch
Patch by Michael Gorny. llvm-svn: 279544
This commit is contained in:
parent
af4e2d5037
commit
40de94a24e
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user