[CMake] Fortran - Can’t find *.mod
C. Meissa
carsten.meissa at gmx.de
Mon Dec 21 14:52:24 EST 2009
Hello List,
I’m moving my fortran project to cmake…
I have a src directory containing 3 dirs:
main
mod1
mod2
The main program in “main” is to be linked against the libs in “mod1”
and “mod2”.
Additionally “mod2” does need “mod1”, too. (use mod1).
When compiling gfortran says:
Fatal Error: Can't open module file 'mod1.mod' for reading at (1): File not
found
This happens even if I statically set the “add_subdirectory()”-statements to
the right order.
Isn’t there a fortran dependency checker?
I’m using cmake version 2.6-patch 0 from debian lenny.
Thx a lot in advance
C.M.
More information about the CMake
mailing list