Specifying Fortran in cmake

Takeshi Enomoto takeshi at macports.org
Sat Dec 22 00:21:40 PST 2012


Hello,

I need a help from a cmake guru.

I maintain plplot, which has variants to support Fortran bindings.
In fact, these variants do not work except for g95.

<https://trac.macports.org/ticket/36982>

CMAKE_Fortran_COMPILER passed via configure.args is not used
when checking the Fortran compiler.
If g95 is installed, it is used even and the test succeeds.

Defining Fortran_COMPILER_NAME=gfortran does not help.

How does cmake find a Fortran compiler?
Which file? A file provided in plplot or cmake installation?

Takeshi


More information about the macports-dev mailing list