[CMake] Timestamps...

Lee A Ankeny laa at lanl.gov
Thu Oct 28 10:59:47 EDT 2004


Is it possible that buildroot/X and buildroot/Y are links to directories on separate servers? If one is remote-mounted its timestamps would be taken from the clock on the server, which may differ from your own.
Lee

At 7:12 PM +1300 10/28/04, Lars Pechan wrote:
>Hi there,
>I have little timestamp problem that I can't get my head around. This is what happens:
>
>1) I have an out-of-source build directory called "buildroot".
>2) Buildroot is quite a big tree (which shouldn't make any difference).
>3) In order to build a particular library in buildroot I need to copy in an rc-file ("app.rc") to two locations: buildroot/X/app.rc and buildroot/Y/app.rc.. (Legacy reasons -- don't ask...)
>4) I first copy it to buildroot/X/app.rc
>5) It then gets copied into buildroot/Y/app.rc.
>6) (The copying is done via custom commands where buildroot/Y/app.rc depends on buildroot/X/app.rc).
>7) This all works fine but this rule is nearly always firing!!
>8) Looking at the timestamps I see that the buildroot/Y/app.rc is older than buildroot/X/app.rc!! Ie the copy is older than its original?? The difference is about one second. This happens most of the time but not always? Sometimes the source is older as it should be.
>9) (The copying is driven by a request for buildroot/Y/app.rc but in order for that to happen the file has to be copied over to buildroot/X/app.rc first)
>
>My question:  Either I have completely lost my marbles or there is some dodgy race condition here?
>
>Any ideas?
>
>/Lars
>
>_______________________________________________
>CMake mailing list
>CMake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake


-- 
-------------------------------------------------------------------
Lee Ankeny
Group CCN-12, MS B295, Los Alamos, NM 87545
505-665-0195, FAX 505-665-5402, e-mail laa at lanl.gov


More information about the CMake mailing list