[CMake] Fortran question

Karl Merkley karl at elemtech.com
Mon Jul 24 14:37:38 EDT 2006


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?

   Karl


More information about the CMake mailing list