[CMake] How to make a Fortran file dependent on #inclde files

T.Sariyski tzsariysk at gmail.com
Tue Jul 18 16:46:12 EDT 2017


Hi,

 

I have a Fortran project with numerous #include files. When a #include file is changed, CMake does not detect the change, and does not rebuild the objects using this include file. In order to reflect the change, currently I  ‘make clean; make’, which rebuilds the entire project.  Is there a way to tell CMake that a Fortran file depends from its #include files?

 

Thanks in advance,

Ted

 

P.S. I use cmake-3.4.3

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170718/ffa5fe84/attachment.html>


More information about the CMake mailing list