[cmake-developers] Time truncation bug in cmake -E touch
Brad King
brad.king at kitware.com
Thu May 30 08:28:02 EDT 2013
On 05/30/2013 08:26 AM, Alan W. Irwin wrote:
> To illustrate the problem on Linux:
>
> wine at raven> touch test1; cmake -E touch test2; touch test3
> wine at raven> ls -lrt --time-style=full-iso test[123]
> -rw-r--r-- 1 wine wine 0 2013-05-30 04:18:25.000000000 -0700 test2
> -rw-r--r-- 1 wine wine 0 2013-05-30 04:18:25.761281846 -0700 test1
> -rw-r--r-- 1 wine wine 0 2013-05-30 04:18:25.765281683 -0700 test3
>
> Note the time on test2 generated by cmake -E touch has been truncated to the nearest second so
> it is not in the correct time order compared to test1 and test3.
> I checked that both CMake-2.8.10.2 and CMake-2.8.0 had this issue
> so it appears this is a bug that has been around for a while.
http://www.cmake.org/Bug/view.php?id=14020
-Brad
More information about the cmake-developers
mailing list