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
