<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>I am trying to build 
a mixed fortran/C++ project and am having trouble using the Intel Fortran 10 
compiler. I have checked the mailing list archives and tried to piece together a 
solution to no avail.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>I am using CMake 
2.4.6 and today tried to use CMake 2.5 - 20071024, and both have the same 
problem in finding the&nbsp;fortran libraries. I am generating files for MS 
Visual Studio 8.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>I have tried the 
following:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>1) I have added 
ENABLE_LANGUAGE(Fortran) to my project.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>2) I have verified 
that CMake is running &lt;CMAKE&gt;/Modules/Platform/Windows-ifort.cmake by 
adding a MESSAGE command there.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>3) I have checked 
the 
&lt;CMAKE_BINARY_DIR&gt;/CMakeFiles/CMakeTmp/cmTryCompileExec.dir/Debug/BuildLog.htm 
and successfully run the commands manually from a Fortran cmd shell provided by 
the Intel Fortran 10.0 compiler.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>4) I have verified 
that if I move the missing library into the 
&lt;CMAKE_BINARY_DIR&gt;/CMakeFiles/CMakeTmp directory that the linking is 
successful.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>5) I have tried to 
build the Fortran tests with the current CVS checkout of CMake and have the same 
problem.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>I now think that 
this must simply be a problem with the path. However, setting the environment 
variables LIB, INCLUDE, and PATH to all include the fortran library directories 
does not help.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>Below is the output 
from running CMake from the command line (the output of CMakeSetup is the same, 
but I was unable to cut and paste the text from there).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>Thanks for any help 
or advice on what to check next.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=505444619-24102007>Danny 
Dunlavy</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007>-----------------------------------------------------------------------------------------------------------------</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=505444619-24102007>&nbsp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=505444619-24102007>%</SPAN>&gt;cmake --debug-trycompile --debug-out<BR>put 
..\..\..\Trilinos\packages\epetra<SPAN 
class=505444619-24102007>&nbsp;</SPAN></FONT></FONT></DIV>
<DIV><SPAN class=505444619-24102007></SPAN>debug trycompile on<BR>Running with 
debug output on.<BR>-- Check for working Fortran compiler: C:/Program 
Files/Intel/Compiler/Fortran/10.0.025/IA32/Bin/ifort.exe<BR>-- Check for working 
Fortran compiler: C:/Program 
Files/Intel/Compiler/Fortran/10.0.025/IA32/Bin/ifort.exe -- broken<BR>CMake 
Error: Error in cmake code at<BR>C:/Program Files/CMake 
2.4/share/cmake-2.4/Modules/CMakeTestFortranCompiler.cmake:25:<BR>MESSAGE The 
Fortran compiler "C:/Program 
Files/Intel/Compiler/Fortran/10.0.025/IA32/Bin/ifort.exe" is not able to compile 
a simple test program.<BR>It fails with the following output:</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Microsoft (R) Visual Studio Version 
8.0.50727.762.<BR>Copyright (C) Microsoft Corp 1984-2005. All rights 
reserved.<BR>------ Build started: Project: cmTryCompileExec, Configuration: 
Debug Win32 ------<BR>Building Fortran object testFortranCompiler.obj<BR>Linking 
Fortran target cmTryCompileExec.exe<BR>LINK : fatal error LNK1104: cannot open 
file 'ifconsol.lib'<BR>Project : error PRJ0019: A tool returned an error code 
from "Linking Fortran target cmTryCompileExec.exe"<BR>Build log was saved at "<A 
href="file://c:\Documents">file://c:\Documents</A> and Settings\dmdunla\My 
Documents\work\dev\build\trilinos\epetra-win32\CMake<BR>Files\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"<BR>cmTryCompileExec 
- 2 error(s), 0 warning(s)<BR>========== Build: 0 succeeded, 1 failed, 1 
up-to-date, 0 skipped ==========</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>CMake will not be able to correctly generate this project.<BR>Current 
CMake stack: C:/Documents and Settings/dmdunla/My 
Documents/work/dev/Trilinos/packages/epetra/src/CMakeLists.txt;C:/Program 
Files/CMake 2.4/share/cmake-2.4/Modules/CMakeTestFortranCompiler.cmake<BR>-- 
Configuring done<BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>