[CMake] Fortran question
Brad King
brad.king at kitware.com
Mon Jul 24 16:15:15 EDT 2006
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
More information about the CMake
mailing list