<font size=2 face="sans-serif">I am using CMake to build LAPACK on a Windows
(x64) machine with msys make, MinGW x64 FORTRAN compiler, and Visual Studio
C/C++ compilers. When CMake tries to test the FORTRAN compiler it
fails with the following message:</font>
<br>
<br><font size=2 face="sans-serif">Check for working Fortran compiler:
D:/Tools/MinGW/x86_64-w64-mingw32/bin/gfortran.exe -- broken</font>
<br><font size=2 face="sans-serif">CMake Error at D:/Tools/CMake/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:54
(message):</font>
<br><font size=2 face="sans-serif"> The Fortran compiler "D:/Tools/MinGW/x86_64-w64-mingw32/bin/gfortran.exe"</font>
<br><font size=2 face="sans-serif"> is not able to compile a simple
test program.</font>
<br>
<br><font size=2 face="sans-serif"> It fails with the following output:</font>
<br>
<br><font size=2 face="sans-serif"> Change Dir: D:/Tools/lapack/build/CMakeFiles/CMakeTmp</font>
<br>
<br><font size=2 face="sans-serif"> Run Build Command:D:/Tools/MinGW/msys/1.0/bin/make.exe</font>
<br><font size=2 face="sans-serif"> "cmTryCompileExec1858728888/fast"</font>
<br>
<br><font size=2 face="sans-serif"> /usr/bin/make -f CMakeFiles\cmTryCompileExec1858728888.dir\build.make</font>
<br><font size=2 face="sans-serif"> CMakeFiles/cmTryCompileExec1858728888.dir/build</font>
<br>
<br><font size=2 face="sans-serif"> 'mTryCompileExec1858728888.dir'
is not recognized as an internal or</font>
<br><font size=2 face="sans-serif"> external command,</font>
<br>
<br><font size=2 face="sans-serif"> operable program or batch file.</font>
<br>
<br><font size=2 face="sans-serif"> make: *** [cmTryCompileExec1858728888/fast]
Error 1</font>
<br>
<br><font size=2 face="sans-serif">The offending line seems to be: /usr/bin/make
-f CMakeFiles\cmTryCompileExec1858728888.dir\build.make</font>
<br>
<br><font size=2 face="sans-serif">I have consistently used forward (UNIX)
slashes in all path names. This path name gets generated by CMake
with backslashes. It appears to be a temporary directly. I
could not find any way to explicitly specify a path for this directory.</font>
<br>
<br><font size=2 face="sans-serif">In searching I have found other reports
of similar problems with CMake, but no solutions.</font>
<br>
<br><font size=2 face="sans-serif">Windows XP/64</font>
<br><font size=2 face="sans-serif">CMake 2.8.9 or 2.8.10.2 (same problem
in both)</font>
<br><font size=2 face="sans-serif">MinGW x64</font>
<br><font size=2 face="sans-serif">msys</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
</font>