[CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

Brad King brad.king at kitware.com
Mon Jun 27 15:38:18 EDT 2011


On 06/27/2011 02:39 PM, Raphael Münster wrote:
> enable_language (Fortran)
> 
> set(CMAKE_Fortran_COMPILER "mpif90")

Set the compiler variable *before* enabling the language.  The enable_language
command does a whole bunch of introspection of the compiler.

-Brad


More information about the CMake mailing list