[CMake] 'MinGW Makefiles' generator can't link when using Intel Fortran
Bill Hoffman
bill.hoffman at kitware.com
Mon Dec 8 16:34:19 EST 2014
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. This seems to work for now. I was surprised I
> didn't need to run from within the VS command prompt shell to support
> C++, as I did for Intel Fortran.
I think the Fortran env also sets up the visual studio compiler.
>
> Of course, I am only using Makefiles for Fortran as a workaround until
> there is CMake+Ninja+Fortran support. :P
Sure.
-Bill
More information about the CMake
mailing list