[CMake] 'MinGW Makefiles' generator can't link when using Intel Fortran

2014-12-08 Thread Ben Robinson
I am having trouble getting a CMake to compile Fortran on Windows. I have mingw32-make.exe in my path. I have the Intel Fortran compile ifort.exe in my path. If I choose the 'Visual Studio 11 2012' generator, Fortran is properly detected and the project sets up fine. I am willing to use a

Re: [CMake] 'MinGW Makefiles' generator can't link when using Intel Fortran

2014-12-08 Thread Ben Robinson
More information, I do not have msys in my path. My mingw32-make.exe version support the job server as it is version: GNU Make 3.82.90 Built for i686-pc-mingw32 My CMake version is 3.0.2. My Intel Fortran compiler version is: Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications

Re: [CMake] 'MinGW Makefiles' generator can't link when using Intel Fortran

2014-12-08 Thread Bill Hoffman
On 12/8/2014 2:46 PM, Ben Robinson wrote: CMakeFiles/cmTryCompileExec3922092051.dir/testFortranCompiler.f.obj LINK : fatal error LNK1104: cannot open file 'ifconsol.lib' Looks like you are running from a shell that is not setup for the Intel fortran compiler to work. The LIBPATH seems

Re: [CMake] 'MinGW Makefiles' generator can't link when using Intel Fortran

2014-12-08 Thread Ben Robinson
Thank you Bill! By running from the Intel command prompt shell, I am able to compile F90 code using CMake + MinGW Make + Intel Fortran. Then, in order to support both CXX and Fortran, I set 'CXX=cl.exe' before calling CMake to generate the project. This seems to work for now. I was surprised I

Re: [CMake] 'MinGW Makefiles' generator can't link when using Intel Fortran

2014-12-08 Thread Bill Hoffman
On 12/8/2014 4:19 PM, Ben Robinson wrote: Thank you Bill! By running from the Intel command prompt shell, I am able to compile F90 code using CMake + MinGW Make + Intel Fortran. Then, in order to support both CXX and Fortran, I set 'CXX=cl.exe' before calling CMake to generate the project.