[CMake] Re: Fortran Flags

Alan W. Irwin irwin at beluga.phys.uvic.ca
Fri Nov 30 18:10:01 EST 2007


On 2007-11-30 11:28+0100 Baptiste Derongs wrote:

> Actually my problem didn't come from what I thought.
> The point is that INCLUDE_DIRECTORIES does not seem to work with Fortran.
> When I use this command, the CMakeDirectoryInformation.cmake show that
> the CMAKE_C_INCLUDE_PATH variable is set, but there is no
> CMAKE_Fortran_INCLUDE_PATH variable, so the linking is missing include
> directories...

INCLUDE_DIRECTORIES works fine on Linux for gfortran.  For the compilation
you get a -I option corresponding to whatever directory you specify.  So
perhaps you should file a bug for your platform/compiler.

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
__________________________


More information about the CMake mailing list