Use right syntax to pass version script to Solaris' ld.
[oota-llvm.git] / cmake / modules / AddOCaml.cmake
index c58ac9cb7349e11a5dd1acda9818621bb4baeac6..8b33332d07bcd5d046987c18da3abd52c2085282 100644 (file)
@@ -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)