[CMake] Multiple Fortran modules, one library?

Maik Beckmann beckmann.maik at googlemail.com
Wed Apr 23 16:51:25 EDT 2008


Am Mittwoch 23 April 2008 22:39:23 schrieb Jason Riedy:
> Ok, the example I have up there *will* work because they're in
> alphabetical order.  However,
>   ADD_LIBRARY(c STATIC b.f90 a.f90)
> will not if a uses b.  a.f90 is built first.
>
> In my actual code, the USE statements are in module procedures.
> I tested with the USE in the module's declaration part.  Both
> are bust.
>
> And I can't figure out how to declare file-level dependencies
> without heavy-duty cheating.

cmake is has to get this dependencies right!  Please code a minimal example 
and do bug report.

Thanks,
 -- Maik




More information about the CMake mailing list