From: <or...@co...> - 2008-09-03 13:52:53
|
> On Tue, Sep 02, 2008 at 10:58:52PM -0600, or...@co... wrote: >> Looks like OCAML_INSTALL_DIR should be set to the output of "ocaml >> -where". This will allow for the differences in Debian and Fedora (and >> other) install locations. >> >> Debian guidelines: >> >> 1.3.2. OCaml Location >> >> The root of all installed OCaml libraries is the OCaml standard >> library directory, which is /usr/lib/ocaml/VERSION/, at the >> time of writing /usr/lib/ocaml/3.10.2. This location can be >> obtained from the OCaml compiler by invoking it as ocamlc >> -where. >> >> >> Fedora: >> >> %{_libdir}/ocaml/foolib >> >> On x86_64: >> mock-chroot> ocamlc -where >> /usr/lib64/ocaml > > Orion, > > I discussed this with Hez when implementing the cmake support for ocaml. > In my opinion a defaul build should have everything as a subdirectory of > the install tree prefix (CMAKE_INSTALL_PREFIX). What if you are > installing on a system without root access? What if you are testing > different versions? This is what we do for all other languages. > > For packaging you are right - using "ocaml -where" is the correct thing > to do, but this is an issue for the packager. > > Andrew Well, I'm the packager, so it's an issue for me :-). Currently there is no way to override OCAML_INSTALL_DIR. I'm happy to pass in -DOCAML_INSTALL_DIR:PATH=`ocamlc -where` to cmake if that's what you guys decide, but I need to be able to set it. - Orion |