What I found with the module problem was that the parser was picking
up the keyword in the comment. I just did something like add braces
around the module keyword so that the parser was a little more
confused and didn't identify the word module in the comment.
Something like . . .
c this is a {module} in fortran
After that it worked great including the dependencies. The fix is to
modify the parser so that any line that has a "c" (case independent)
in the first line is skipped. Unfortunately, my flex/bison skills
are non-existent so I wouldn't have a clue as to how to make that
change!
Karl
On Aug 11, 2006, at 11:58 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
Thanks Bill that worked great! I was missing the step about
deleting the cache file.
The next problem that I ran into was various mod.proxy dependency
issues. I saw an earlier thread on this but no solution was
reached. I ended up commenting out the module dependency code
under cmDependsFortran.cxx. Everything compiled fine with that fix.
I'm not an expert at fortran modules. My code is legacy f77 as is
my fortran knowledge base... but I wondering if the way that
cmDependsFortran is adding module dependencies is specific to the
gnu fortran compiler. I know the intel fortran compile that I'm
using doesn't generate any mod.proxy files. If there are any f90
module specific tests that I can run, I would be happy to do so
with the intel compiler in order to investigate the problem further.
Thanks,
Bryan Walsh
---- "William A. Hoffman" <[EMAIL PROTECTED]> wrote:
When I run ccmake and set CMAKE_Fortran_Compiler to ifort or $
{Install Path}/ifort and then configure CMAKE_Fortran_Compiler
resets back to the gnu compiler /usr/bin/f95. I don't understand
why this is happening. Any ideas?
I'm running on FC4, with CMAKE 2.4.3. Running ifort from the
command line works fine.
Remove the CMakeCache.txt file.
Then set the environment variable FC to ifort. Then re-run ccmake.
Cmake looks for fortran compilers in this order:
SET(CMAKE_Fortran_COMPILER_LIST ifort ifc efc f95 pgf95
lf95 xlf95 fort gfortran f90 pgf90 xlf90 epcf90
fort77 frt pgf77 xlf fl32 af77 g77 f77 )
Are you sure that ifort is in your path when you run ccmake?
But the environment variable FC should force cmake to pick ifort.
setenv FC /path/to/ifort
or
export FC=/path/to/ifort
-Bill
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
--------------------------------------
Karl G. Merkley, Ph.D.
[EMAIL PROTECTED] / [EMAIL PROTECTED]
csimsoft, LLC.
17 North Merchant Street
American Fork, UT 84003
(801) 756-1972 ext 1
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake