diff --git a/llvm/docs/CMakeLists.txt b/llvm/docs/CMakeLists.txt --- a/llvm/docs/CMakeLists.txt +++ b/llvm/docs/CMakeLists.txt @@ -148,7 +148,7 @@ list(APPEND odoc_files -load ${odoc_file}) endforeach() - add_custom_target(ocaml_doc + add_custom_target(ocaml_doc ALL COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html COMMAND ${OCAMLFIND} ocamldoc -d ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html