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

Michael Jackson mike.jackson at bluequartz.net
Fri May 30 14:44:17 EDT 2014


On May 30, 2014, at 1:43 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:

> 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
> 

How is CMake determining if the Intel Compiler is available? Registry query or Path query? I tried to export the FC variable but that did not work either. I guess I'll have to fire up yet-another virtual machine. was just hoping to bounce back and forth between the compilers on the same machine.

Thank you for the insight.
Mike Jackson




More information about the CMake mailing list