[CMake] fortran modules and parallel builds

Zaak Beekman zbeekman at gmail.com
Wed Feb 25 13:58:17 EST 2015


When multiple executables or libraries depend on the same fortran source
file that contains a module, parallel (Makefile) builds are failing for me
because the .mod file is getting moved/renamed/written by more than one
process at a time. Is there a way to have the same module containing
sourcefile listed as one of the sources for multiple executable and/or
library targets without this happening? Right now my work around/hack is
change the Fortran_MODULE_DIRECTORY property to something unique for each
target, but this is a pain, and very sloppy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150225/25d57dc1/attachment.html>


More information about the CMake mailing list