Skip to content

Commit 6dbcfb3

Browse files
committed
[doc]: build ocaml_doc by default to avoid missing install artifacts
Mark `ocaml_doc` as an ALL target so that the HTML docs are generated before `cmake --build . --target install`. This prevents `install(DIRECTORY …)` from failing when the ocamldoc output is absent.
1 parent 0542355 commit 6dbcfb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/docs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if( NOT uses_ocaml LESS 0 AND LLVM_ENABLE_OCAMLDOC )
136136
list(APPEND odoc_files -load ${odoc_file})
137137
endforeach()
138138

139-
add_custom_target(ocaml_doc
139+
add_custom_target(ocaml_doc ALL
140140
COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
141141
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
142142
COMMAND ${OCAMLFIND} ocamldoc -d ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html

0 commit comments

Comments
 (0)