[Trilinos-Users] Cannot build 64 bit on Intrepid.

David Cole david.cole at kitware.com
Mon May 3 13:48:47 MDT 2010


On Mon, May 3, 2010 at 3:43 PM, John R Cary <cary at colorado.edu> wrote:

> On 5/3/10 2:21 PM, Brad King wrote:
> > John R Cary wrote:
> >> A question (for anyone): How does CMake handle fixed-form versus
> >> free-form Fortran?
> >
> > Currently it does nothing special and just hopes the compiler figures
> > it out.
>
> I think only XL is not adept at this.
>
> > I've had a TODO list entry for a long time to add a source-file
> > property to mark files as free- or fixed-format.
> >
> >> While nearly all compilers figure this
> >> out on the basis of the file suffix, the XL series
> >> is not sufficiently bright.  Experimentation shows
> >> that for Trilinos, I need to provide xlf (fixed-form),
> >> not xlf90 (free form).
> >
> > Actually you can just set the COMPILE_FLAGS target or source file
> > property to include -qfixed or -qfree on this compiler.  This is a
> > work-around until the above-mentioned property is added.
> >
> > -Brad
> >
>
>
> Yes, as long as a project has only one kind of Fortran format.
>
>
If you use a target or source file property, then the COMPILE_FLAGS apply
only to that target or source file. As long as you organize these correctly,
you should be able to have both fixed and free source files in the same
target. (Or targets in the same project...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100503/baa7a058/attachment.html 


More information about the Trilinos-Users mailing list