Looking at Modules/CMakeFortranCompiler.cmake.in it would appear you can try to set the environment variable "FC" to indicate your preferred fortran compiler. Or you could try passing -DCMAKE_Fortran_COMPILER:STRING=ifort on the cmake/ccmake command line. (Or setting it in your "initial cache" if you have one.)

HTH,
David


Doug Henry wrote:

I have g77 and ifort fortran compilers installed under linux. For a few projects I would like to force the use of ifort if available. Is there a way to "suggest" the order the cmake automatic detection looks for fortran compilers?

------------------------------------------------------------------------

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to