Details
- Reviewers
whitequark
Diff Detail
- Repository
- rL LLVM
Event Timeline
Because the "Could NOT find ..." messages interfere with automated checks of issues: https://bugs.gentoo.org/641536.
Maybe LLVM should consider at least using find_package($PKG QUIET) to avoid the unnecessary verbosity, although in the case of OCaml it didn't have any effect, due to the custom FindOCaml.cmake which does not implement the QUIET option.
Whether the bindings are enabled have nothing to do with whether ocamldoc is. Fix your automated checker.
I patched ROOT in Gentoo to avoid the error messages, but how could OCaml bindings be turned off in LLVM if OCaml is installed at configure time? (and avoiding the package lookup if it's not needed?)
Another comment is that include(FindOCaml) and find_package(OCaml) serve more or less the same purpose, so the error message appears twice. One of the lines could be removed.
how could OCaml bindings be turned off in LLVM if OCaml is installed at configure time? (and avoiding the package lookup if it's not needed?)
That's not supported for any of the bindings right now.
Another comment is that include(FindOCaml) and find_package(OCaml) serve more or less the same purpose, so the error message appears twice. One of the lines could be removed.
ACK on this.
This patch can be dropped as it no longer applies and there is now the option to disable OCaml bindings via LLVM_ENABLE_BINDINGS.