[CMake] How to specify precedence when using enable_language to search for compilers

Alexander Neundorf a.neundorf-work at gmx.net
Sat Mar 12 14:42:26 EST 2011


On Saturday 12 March 2011, rocwhite168 wrote:
> Hi everyone,
>
> I wonder how I can specify precedence when using enable_language to
> search for compilers. For example, if my system has both ifort and
> gfortran installed, and I want to use ifort instead of the gfortran,
> how could I set up this?

You can set the environment variable FC before running cmake initially.

Alex


More information about the CMake mailing list