Fortran module dependencies across object libraries
I'm using the inofficial ninja version that supports Fortran on a Windows machine with MinGW compilers.
In my CMake project I define multiple object libraries in different subdirectories. By adjusting the include directories of the subdirectories some of them can use Fortran modules from others, e.g.
src/
base_util/
base_math/ (can use modules from base_util)
abstract_core/ (can use modules from both base_util and base_math)
...
Now the first build works just fine. But when I modify e.g. a file in base_util
ninja only recompiles other files in base_util
and does ignore files that depend on the modified module in e.g. abstract_core
.
This leads to corrupt executables in the worst case.
With other generators (Makefiles, MinGW Makefiles, MSVC) everything works fine.
Any idea on this?
Edited by Brad King