[CMake] Mixing GFortran and Intel Fortran on the Same windows machine?

Bill Hoffman bill.hoffman at kitware.com
Fri May 30 13:43:10 EDT 2014


On 5/30/2014 12:53 PM, Michael Jackson wrote:
> Is it possible to install both a GFortran and Intel Fortran on the
> same machine? I have a window 7 x64 machine where I have Visual
> Studio 2013 Pro installed in addition to Intel Fortran (What ever the
> latest is) and I also downloaded GFortran (From the GCC Wiki pages).
> I have setup some batch files to setup the paths depending on which
> set of compilers that I want. I then proceeded to configure my
> fortran project with CMake and I get an error when trying to sanity
> check GFortran that says "cr is not an operable file" or something
> like that. I am really new to Fortran at this point and I have no
> idea what this "cr" program does? It does not seem to come with the
> GFortran installer that I pulled down.
>
> THanks for any Help
>
> Mike Jackson

There is this stuff:

http://www.kitware.com/blog/home/post/231
You could most likely coax cmake_add_fortran_subdirectory to pick and 
choose which fortran is used.  I think right now it will use the intel 
one if it has it.

-Bill



More information about the CMake mailing list