[CMake] How to switch off dependencies in special cases?

Philip Lowman philip at yhbt.com
Tue Jan 16 16:06:24 EST 2007


Jorrit Schaap wrote:
> Is it possible to tell cmake to igore the changed timestamp of a particular
> file when it scans for dependencies?

I don't know the answer to your question but just in case you haven't 
thought of this workaround to your problem, you should check out the 
manpage for the touch program.  Using it you can set the modified 
timestamp of a file to be what it was prior to editing it.  If one had 
to do it enough I'm sure you could wrap the editing with a simple shell 
script.

Be advised though that this is very dangerous if you start making 
changes that aren't simply comments. :)

-- 
Philip Lowman
Simulation Development Engineer, Modeling and Simulation Technology
General Dynamics Land Systems
http://www.gdls.com


More information about the CMake mailing list