[CMake] Multiple Fortran modules, one library?

Jason Riedy ejr at cs.berkeley.edu
Wed Apr 23 15:46:45 EDT 2008


Say I have a line
  ADD_LIBRARY(c STATIC a.f b.f)
where a.f produces module a, b.f produces module b and *uses*
module a.

Is this expected to work?  Currently, cmake 2.6 doesn't detect
the dependency between b.f and a.f.

Putting multiple modules in one library makes a C interface a
tad easier, especially since the above are actually using the
F03 C binding joy.

Jason



More information about the CMake mailing list