Re: [CMake] cmake thinks mingw-64 gfortran on Windows is broken

2018-03-12 Thread Brad King
On 03/09/2018 07:58 PM, Ondřej Čertík wrote: > How do I make CMake pass the "Check for working Fortran compiler" phase? The problem reported in issue 17810 is caused by trying to enable C with MSVC and Fortran with GNU together at the same time, e.g. `project(MyProj C Fortran)`. These tools canno

[CMake] cmake thinks mingw-64 gfortran on Windows is broken

2018-03-09 Thread Ondřej Čertík
Hi, I have previously reported the issue here: https://gitlab.kitware.com/cmake/cmake/issues/17810 I was told to follow https://blog.kitware.com/fortran-for-cc-developers-made-easier-with-cmake/. I did in fact follow it. Just to be sure, I tried the `-DCMAKE_GNUtoMS=ON -DBUILD_SHARED_LIBS=ON`