<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. &nbsp;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 &nbsp;-- 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">&nbsp; The Fortran compiler &quot;D:/Tools/MinGW/x86_64-w64-mingw32/bin/gfortran.exe&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; is not able to compile a simple
test program.</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; It fails with the following output:</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;Change Dir: D:/Tools/lapack/build/CMakeFiles/CMakeTmp</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; Run Build Command:D:/Tools/MinGW/msys/1.0/bin/make.exe</font>
<br><font size=2 face="sans-serif">&nbsp; &quot;cmTryCompileExec1858728888/fast&quot;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; /usr/bin/make -f CMakeFiles\cmTryCompileExec1858728888.dir\build.make</font>
<br><font size=2 face="sans-serif">&nbsp; CMakeFiles/cmTryCompileExec1858728888.dir/build</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; 'mTryCompileExec1858728888.dir'
is not recognized as an internal or</font>
<br><font size=2 face="sans-serif">&nbsp; external command,</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; operable program or batch file.</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; 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. &nbsp;This path name gets generated by CMake
with backslashes. &nbsp;It appears to be a temporary directly. &nbsp;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>