Re: [CMake] Ada and CMake

2007-03-14 Thread Alan W. Irwin
On 2007-03-05 12:20-0500 Bill Hoffman wrote: Alan W. Irwin wrote: Anyhow, with the gnatmake test, the first form of TRY_COMPILE is required, and so far I have not been able to figure out how to avoid the infinite TRY_COMPILE issue with that form. Thus, I would really appreciate an answer for h

Re: [CMake] Ada and CMake

2007-03-05 Thread Bill Hoffman
Alan W. Irwin wrote: On 2007-03-02 12:19-0800 Alan W. Irwin wrote: So how does Fortran (and C, and C++) avoid the TRY_COMPILE infinite recursion? Whatever it is, I have obviously missed it for my experimental Ada language support or some core change needs to be made to CMake itself. Anoth

Re: [CMake] Ada and CMake

2007-03-05 Thread Alan W. Irwin
On 2007-03-02 12:19-0800 Alan W. Irwin wrote: So how does Fortran (and C, and C++) avoid the TRY_COMPILE infinite recursion? Whatever it is, I have obviously missed it for my experimental Ada language support or some core change needs to be made to CMake itself. Another possibility is there

Re: [CMake] Ada and CMake

2007-03-02 Thread Alan W. Irwin
On Brandon's advice I experimentally tried to replace the execute_process method of testing gnatmake by use of the first form of TRY_COMPILE to test the Ada form of ADD_EXECUTABLE, but I ran into the following error message: Attempt at a recursive or nested TRY_COMPILE Here is the CMakeLists.txt

Re: [CMake] Ada and CMake

2007-02-28 Thread Alan W. Irwin
On 2007-02-27 22:09-0800 Alan W. Irwin wrote: On 2007-02-27 23:13-0500 Bill Hoffman wrote: I wonder if you could just use the output name, and tack on the ada extension to it. add_executable(foo ...) gnatmake foo.ada. Thanks for that idea. I assume you are referring to the pattern. Now th

Re: [CMake] Ada and CMake

2007-02-27 Thread Werner Smekal
Hi, so that would resolve to foo on all systems. I am largely unfamiliar with Windows. Would the lack of the suffix on the resulting windows executable be a problem on that platform? Yes, windows "knows" that a file is a executable by the file extension (there is no 'x' flag). If there is

Re: [CMake] Ada and CMake

2007-02-27 Thread Alan W. Irwin
On 2007-02-27 23:13-0500 Bill Hoffman wrote: Alan W. Irwin wrote: In sum, gnatgcc handles compiling and linking into a library in a manner identical to gcc (it is actually a symlink to an Ada-enabled gcc on Linux systems) so ADD_LIBRARY for the Ada case is easy to implement. However, gnatmake

Re: [CMake] Ada and CMake

2007-02-27 Thread Alan W. Irwin
On 2007-02-27 21:38-0500 Bill Hoffman wrote: Alan W. Irwin wrote: A question for the CMake developers: how difficult would it be to add support for when interpreting CMAKE_(LANG)_LINK_EXECUTABLE? As explained above without this core change to CMake it is impossible to implement a useful ADD_E

Re: [CMake] Ada and CMake

2007-02-27 Thread Bill Hoffman
Alan W. Irwin wrote: On 2007-02-25 22:36- Filipe Sousa wrote: In Modules directory there is a file with instructions on how to add a new language to cmake. http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/CMakeAddNewLanguage.txt?rev=1.1.2.1&root=CMake&view=markup Thanks to that t

Re: [CMake] Ada and CMake

2007-02-27 Thread Alan W. Irwin
On 2007-02-25 22:36- Filipe Sousa wrote: In Modules directory there is a file with instructions on how to add a new language to cmake. http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/CMakeAddNewLanguage.txt?rev=1.1.2.1&root=CMake&view=markup Thanks to that tip from Filipe, I now ha

Re: [CMake] Ada and CMake

2007-02-25 Thread Alan W. Irwin
On 2007-02-25 22:36- Filipe Sousa wrote: Alan W. Irwin wrote: [...] Can somebody tell me how to arrange the above [Ada language support] modifications? In Modules directory there is a file with instructions on how to add a new language to cmake. http://public.kitware.com/cgi-bin/viewcv

Re: [CMake] Ada and CMake

2007-02-25 Thread Filipe Sousa
Alan W. Irwin wrote: On 2007-02-24 12:03-0800 Alan W. Irwin wrote: I have now learned that the GNAT compiler is simply and add-on to gcc, and in fact all the low-level compilations of Ada source in the GNAT case are done by gcc. Also, Ada keeps track of dependency issues for itself so the high

Re: [CMake] Ada and CMake

2007-02-25 Thread Alan W. Irwin
On 2007-02-24 12:03-0800 Alan W. Irwin wrote: I am a rank Ada beginner, but nevertheless somebody just donated an Ada interface to PLplot so I am trying to get on top of what changes to our CMake build system will be required to build and install an Ada project library interfacing Ada with the P

[CMake] Ada and CMake

2007-02-24 Thread Alan W. Irwin
I am a rank Ada beginner, but nevertheless somebody just donated an Ada interface to PLplot so I am trying to get on top of what changes to our CMake build system will be required to build and install an Ada project library interfacing Ada with the PLplot core library. We also need to build and i