On 2009-02-03 16:35-0700 Orion Poplawski wrote:

> We're currently getting ready for gcc 4.4 in Fedora Devel.  On issue is
> that ada.cmake only looks for up to gnat-4.3.  This always bugs me as a
> limitation on cmake.  Any way to be more robust finding newer versions?

Hi Orion:

Thanks for your report of this issue for gcc 4.4.

What happens if you change

find_library(GNAT_LIB NAMES gnat gnat-4.1 gnat-4.2 gnat-4.3)

to

find_library(GNAT_LIB NAMES gnat gnat-4.1 gnat-4.2 gnat-4.3 gnat-4.4)

in cmake/modules/ada.cmake?

If that works, I will commit it.

I considered your plea for a more robust method.  You could have CMake run
the gnat compiler after it has found it with the --version option to get a
version string.  That option works for the gnatgcc compiler, but I am not
sure it works for all gnat compilers so you would have to deal with the
potential situation where that option failed. Furthermore, there is no
guarantee what the corresponding name of the library will be in all cases.
Of course, from the above list you could make a pretty good guess from the
compiler version string if that was available. So with some care I think you
could certainly prefix the above list with a variable that would tend to
work most of the time for future versions.  I would be happy to apply such a
patch if somebody wants to make this effort.  OTOH, perhaps a simple list
that we extend periodically as new versions become available is good enough
for now according to the KISS principle.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to