• Robert Dailey's avatar
    File copy/install permissions code modifying timestamps · d8797e69
    Robert Dailey authored
    When invoking file(COPY) or file(INSTALL), the flow is:
    
        Copy File -> Modify Timestamps -> Set Permissions
    
    Now the flow is:
    
        Copy File -> Set Permissions -> Modify Timestamps
    
    Setting permissions after modifying the timestamps causes the timestamps
    to be modified *again*, resulting in the timestamps being set to the
    current clock time instead of the timestamp of the source file of the
    copy.
    
    Additionally, none of the above 3 operations are performed if the two
    file timestamps (source & destination) are the same.
    
    Fixes #17087
    d8797e69
Name
Last commit
Last update
Auxiliary Loading commit data...
Help Loading commit data...
Licenses Loading commit data...
Modules Loading commit data...
Packaging Loading commit data...
Source Loading commit data...
Templates Loading commit data...
Tests Loading commit data...
Utilities Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hooks-config Loading commit data...
CMakeCPack.cmake Loading commit data...
CMakeCPackOptions.cmake.in Loading commit data...
CMakeGraphVizOptions.cmake Loading commit data...
CMakeLists.txt Loading commit data...
CMakeLogo.gif Loading commit data...
CONTRIBUTING.rst Loading commit data...
CTestConfig.cmake Loading commit data...
CTestCustom.cmake.in Loading commit data...
CompileFlags.cmake Loading commit data...
Copyright.txt Loading commit data...
DartConfig.cmake Loading commit data...
README.rst Loading commit data...
bootstrap Loading commit data...
cmake_uninstall.cmake.in Loading commit data...
configure Loading commit data...
doxygen.config Loading commit data...