We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1ecee commit b550d74Copy full SHA for b550d74
llvm/docs/CMakeLists.txt
@@ -136,7 +136,12 @@ if( NOT uses_ocaml LESS 0 AND LLVM_ENABLE_OCAMLDOC )
136
list(APPEND odoc_files -load ${odoc_file})
137
endforeach()
138
139
- add_custom_target(ocaml_doc ALL
+ set(OCAML_DOC_ADD_TO_ALL "")
140
+ if(LLVM_BUILD_DOCS)
141
+ set(OCAML_DOC_ADD_TO_ALL ALL)
142
+ endif()
143
+
144
+ add_custom_target(ocaml_doc ${OCAML_DOC_ADD_TO_ALL}
145
COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
146
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
147
COMMAND ${OCAMLFIND} ocamldoc -d ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
0 commit comments