Race condition when Fortran module is included in multiple libraries
Suppose I want to build a two libraries that both contain the same set of sources; the only difference is that one is a static library and one is a shared library. One source file that goes into the library generates a module file (.mod) upon compilation.
Upon building, there is a chance that the compiler will complain about an "old or corrupt module file" because the module file is generated twice.
CMake should detect and warn about this condition.