<html>
<body>
At 10:18 PM 2/2/2006, Michael Stephenson wrote:<br>
<blockquote type=cite class=cite cite="">
<font face="Arial, Helvetica" size=2>I have a mixed language C++ and
Fortran project that works on Linux. I'm now trying to run it on Windows.
CMakeSetup generates the following errors:<br>
&nbsp;<br>
CMakeError: Error required internal CMake variable not set, cmake may be
not be built correctly.<br>
Missing variable is:<br>
CMAKE_Fortran_FLAGS_RELEASE<br>
&nbsp;<br>
This message is repeated for CMAKE_Fortran_FLAGS_MINSIZEREL,
CMAKE_Fortran_FLAGS_DEBUG, and CMAKE_Fortran_FLAGS_RELWITHDEBINFO.<br>
&nbsp;<br>
I then get this error message:<br>
&nbsp;<br>
CMakeError: Internal CMake error, TryCompile generation of cmake
failed.<br>
&nbsp;<br>
and finally:<br>
&nbsp;<br>
The Fortran compiler &quot;ifort.exe&quot; is not able to compile a
simple test program.<br>
It fails with the following output:<br>
(blank)<br>
&nbsp;<br>
CMake will not be able to correctly generate this project.<br>
&nbsp;<br>
Since CMake is able to find the Fortran compiler, why doesn't it set the
*Release, etc. flags and compile the test program.<br>
&nbsp;<br>
--Mike Stephenson<br>
&nbsp;</font></blockquote>You should enable Fortran like this:<br>
PROJECT(testf Fortran)<br>
There is a test in CMake/Tests/Fortran.<br><br>
-Bill<br>
</body>
</html>