[CMake] Unable to set CMAKE_Fortran_COMPILER on Mac OS X 10.8.3

Bill Hoffman bill.hoffman at kitware.com
Thu Mar 28 08:59:57 EDT 2013


On 3/27/2013 9:48 PM, William Clodius wrote:
> I have been developing Fortran 2003 code on a Mac system. Because
> Xcode comes with a very old version of gcc its Fortran compiler has
> poor support for newer versions of Fortran, so I have been using
> newer versions of gcc installed using Mac Fink, and run from either
> the terminal application, or the X-Windows application (now XQuartz).

Start with an empty directory:

export FC= /sw/bin/gfortran
export CC=/sw/bin/cc
export CXX=/sw/bin/c++

cmake -G"Unix Makefiles" ../path/to/source

-Bill



More information about the CMake mailing list