Specifying Fortran in cmake

Takeshi Enomoto takeshi at macports.org
Sat Dec 22 18:22:03 PST 2012


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

After some trials, I found the followings.

* CMAKE_Fortran_COMPILER is used during the main cmake call in build directory.
* However, in build/language_tests/Fortran, the compiler set in FC and the link flags
  in LDFLAGS are used.

So the solution is to set configure.fc and to unset configure.ld_archflags.

Takeshi


More information about the macports-dev mailing list