[CMake] Fortran build dependency on Windows

Allen Byrne byrn at hdfgroup.org
Mon Jul 20 17:10:29 EDT 2015


We have encountered a problem on Windows, Visual Studio 2012(VS2013) with 
Intel Fortran 15. We generate a f90 file that must be compiled after another 
file because of module dependencies. See attached for a small example that 
demonstrates the issue.

We use the OBJECT_DEPENDS property as follows;

set_source_files_properties (${HDF5_F90_BINARY_DIR}/H5_gen.F90
    PROPERTIES OBJECT_DEPENDS "${f90_F_BASE_SRCS}"
)

This works fine on Linux and if we build within Visual Studio. If we build on 
the command line the DEPENDS seems to be ignored.

Environment: Windows 7, Visual Studio 2012, Intel Fortran 15, and CMake 3.1

Allen Byrne
The HDF Group
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmakeFtest.tar
Type: application/x-tar
Size: 10240 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150720/a9b57e1f/attachment-0001.tar>


More information about the CMake mailing list