[CMake] Adding a new language

2011-11-09 Thread Stefan Monnier
I'm trying to use cmake for a project using OCaml, so I'm trying to add support for a new language. Among the many problems I encounter, the most pressing is the following: the rule to build object files (CMAKE_OCaml_COMPILE_OBJECT) seems to want a command that takes and generates , both of which

Re: [CMake] Adding a new language

2011-11-11 Thread Stefan Monnier
> According to http://caml.inria.fr/pub/docs/manual-ocaml/manual022.html, it > does: > -o exec-file > Specify the name of the output file produced by the compiler. The > default output name is a.out under Unix and camlprog.exe under Windows. If This manpage describes all kinds of uses and in p

Re: [CMake] Adding a new language

2011-11-11 Thread Stefan Monnier
>> I'm trying to use cmake for a project using OCaml, so I'm trying to add >> support for a new language. > Just in case you weren't aware of that. > There has been [several] discussions on the ML > in the past concerning CMake OCaml support at least this one: > http://www.cmake.org/pipermail/cmak

Re: [CMake] Adding a new language

2011-11-14 Thread Stefan Monnier
> "If the -c option is given, specify the name of the > object file produced for the next source file that appears on the > command line." > So if the help says that -o is supposed to do something sensible when used > with -c but it doesn't, I'd suggest to file a bug. Note that the order of > ar

Re: [CMake] Adding a new language

2011-11-15 Thread Stefan Monnier
>> I'd still like to know how to explain to cmake that the command produces >> 2 files, but at least I can get rid of my hack. > That (assuming just a simple object file is produced by compilation) > is one of several general limitations with CMake language support. For > example, my understanding