On Jul 24, 2006, at 2:15 PM, Brad King wrote:
Karl Merkley wrote:
I have a simple Fortran project that I am testing with cmake.
PROJECT(multi_patch Fortran)
SET( SRCS
aAdjKeep.f
Main_mp.f
)
ADD_EXECUTABLE(multi_patch ${SRCS})
However, the first file is a Fortran 95 module and when I try to
build I get
the following error.
Scanning dependencies of target multi_patch
Building Fortran object CMakeFiles/multi_patch.dir/aAdjKeep.o
Error copying Fortran module "for". Tried "FOR.mod" and "for.mod".
If I just do a
gfortran -c aAdjKeep.f
it compiles and creates aadjkeep.mod.
What is the status of the Fortran support. Where is a good
starting place to
look in the code base to see what is going on?
Unfortunately we don't have time to debug/fix problems with the module
support for Fortran ourselves. Use "grep" to look for references to
fortran in the CMake/Source directory. In particular you might
look for
"cmake_copy_f90_mod" to see code related to this error message.
-Brad
I thought I had seen someplace where Fortran support was not high on
the priority list. I may not like it but I understand.
I have isolated the problem and submitted a bug on it (#3564). The
problem seems to be that the cmake parser finds the Fortran keyword
module inside of a comment line. Fixing this is probably pretty easy
for a flex/bison guru but that is _not_ my area of expertise. If
someone gets a chance to look at this I would appreciate it.
Karl
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake