[CMake] Adding a new language for a multiple language project - CMAKE_AR problem(?)

2014-10-27 Thread fungos
Hello, I'm trying to create a simple exercise, a definition for a virtual language X that will be used side-by-side with C and C++. There are some restrictions on the level of compatibility with C/C++. For instance, the objects of this language aren't directly compatible with C and C++ but then

Re: [CMake] Adding a new language

2011-11-17 Thread Bill Hoffman
On 11/16/2011 4:03 PM, Alan W. Irwin wrote: Hi Bill: Your summary shows you misunderstood what I said so I have to correct that. The basic issue I have with your interpretation is additional generic language support != Creating a generic way to add new languages OK, let me try again.

Re: [CMake] Adding a new language

2011-11-16 Thread Michael Hertling
On 11/16/2011 04:13 AM, Stefan Monnier wrote: 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

Re: [CMake] Adding a new language

2011-11-16 Thread Bill Hoffman
On 11/16/2011 3:52 AM, Michael Hertling wrote: On 11/16/2011 04:13 AM, Stefan Monnier wrote: 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

Re: [CMake] Adding a new language

2011-11-16 Thread Alan W. Irwin
On 2011-11-15 23:35-0500 Bill Hoffman wrote: On 11/14/2011 3:24 PM, Alan W. Irwin wrote: If you are willing to make such an OCaml summary, I would be willing to do the same thing for Ada to make our joint case to the CMake developers of what kind of additional generic language support is

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 is

Re: [CMake] Adding a new language

2011-11-15 Thread Bill Hoffman
On 11/14/2011 3:24 PM, Alan W. Irwin wrote: If you are willing to make such an OCaml summary, I would be willing to do the same thing for Ada to make our joint case to the CMake developers of what kind of additional generic language support is needed by CMake to deal with the complicated build

Re: [CMake] Adding a new language

2011-11-15 Thread Bill Hoffman
On 11/15/2011 10:13 PM, Stefan Monnier wrote: I'm trying to use CMake for a new project here. This project (a new programming language, whose first implementation is in OCaml) is currently in the very first stages (I have barely more than the lexer written) and doesn't require anything

Re: [CMake] Adding a new language

2011-11-15 Thread Alan W. Irwin
On 2011-11-15 22:13-0500 Stefan Monnier wrote: 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

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 arguments

Re: [CMake] Adding a new language

2011-11-14 Thread Alan W. Irwin
On 2011-11-14 13:30-0500 Stefan Monnier wrote: 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

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

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:

Re: [CMake] Adding a new language

2011-11-11 Thread Hendrik Sattler
Am Freitag, 11. November 2011, 15:55:12 schrieb 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

[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 SOURCE and generates OBJECT,

Re: [CMake] Adding a new language

2011-11-09 Thread Hendrik Sattler
Am 09.11.2011 23:00, schrieb 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

Re: [CMake] Adding a new language

2011-11-09 Thread Eric Noulard
2011/11/9 Stefan Monnier monn...@iro.umontreal.ca: 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