Hi again,

I'm not sure if it is the time I posted this happened to be Sunday
that no one has read it or we simply cannot specify a precedence to
let cmake change its default sequence of searching for available
compilers?

Thanks,
Roc

On Fri, Mar 11, 2011 at 6:10 PM, rocwhite168 <[email protected]> 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?
>
> From what I currently found, a work-around is to set
> CMAKE_Fortran_Compiler before project(xxx), so that this variable can
> never gets overridden later, but clearly this is not the best way,
> since I need gfortran if there turns out to be no ifort available.
>
> By the way, what's the best place to look for this kind of
> information? The documentation does not seem to be very complete..
>
> Thanks,
> Roc
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to