The following issue has been SUBMITTED. ====================================================================== http://cmake.org/Bug/view.php?id=14020 ====================================================================== Reported By: Modestas Vainius Assigned To: ====================================================================== Project: CMake Issue ID: 14020 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2013-03-16 14:48 EDT Last Modified: 2013-03-16 14:48 EDT ====================================================================== Summary: cmake -E touch truncates time to seconds Description: When using "cmake -E touch" on an existing file, the modification time is truncated at the precision of a second. This can be seen e.g. on an ext4 filesystem.
Steps to Reproduce: How to reproduce (file1 is used with "touch", and file2 is used with "cmake -E touch"): # In an empty directory... $ ls -l total 0 # Create the two files: file1 and file2 $ touch file1 ; cmake -E touch file2 ; ls -l --full-time -rw-r----- 1 xxxx xxxx 0 2013-02-03 02:00:57.827669619 +0100 file1 -rw-r----- 1 xxxx xxxx 0 2013-02-03 02:00:57.831669779 +0100 file2 # Note that the times look good here (file1 < file2) # Touch the two files again $ touch file1 ; cmake -E touch file2 ; ls -l --full-time -rw-r----- 1 xxxx xxxx 0 2013-02-03 02:01:01.595819478 +0100 file1 -rw-r----- 1 xxxx xxxx 0 2013-02-03 02:01:01.000000000 +0100 file2 Now, the modification time of file2 is *before* that of file1, but file2 was touched *after* file1. Additional Information: Relayed from Debian bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699657 What is more, I have easily reproduced it with 2.8.11-rc1. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-03-16 14:48 Modestas VainiusNew Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
