[llvm] r239259 - [cmake] [OCaml] Make ocamldoc targets depend on output files
Peter Zotov
whitequark at whitequark.org
Sun Jun 7 12:22:22 PDT 2015
Author: whitequark
Date: Sun Jun 7 14:22:22 2015
New Revision: 239259
URL: http://llvm.org/viewvc/llvm-project?rev=239259&view=rev
Log:
[cmake] [OCaml] Make ocamldoc targets depend on output files
OCaml doc builds fail without .cmi files, and .cmi files are collected
in ocaml_outputs. Therefore, make doc targets depend on ocaml_outputs as
well.
Fixes: https://llvm.org/bugs/show_bug.cgi?id=23777
Patch by Michał Górny <mgorny at gentoo.org>
Modified:
llvm/trunk/cmake/modules/AddOCaml.cmake
Modified: llvm/trunk/cmake/modules/AddOCaml.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddOCaml.cmake?rev=239259&r1=239258&r2=239259&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddOCaml.cmake (original)
+++ llvm/trunk/cmake/modules/AddOCaml.cmake Sun Jun 7 14:22:22 2015
@@ -149,7 +149,7 @@ function(add_ocaml_library name)
"-I" "${LLVM_LIBRARY_DIR}/ocaml/"
"-dump" "${bin}/${name}.odoc"
${ocaml_pkgs} ${ocaml_inputs}
- DEPENDS ${ocaml_inputs}
+ DEPENDS ${ocaml_inputs} ${ocaml_outputs}
COMMENT "Building OCaml documentation for ${name}"
VERBATIM)
More information about the llvm-commits
mailing list