• Yves Frederix's avatar
    file(INSTALL): Preserve file time when writing NTFS alternate stream · 6dcd1bfa
    Yves Frederix authored and Brad King's avatar Brad King committed
    When cross-compiling on a Windows host, we use a `:cmake_mode_t` NTFS
    alternate stream to store the file mode for use during packaging.
    Writing to this stream changes the file modification time, so save and
    restore the original modification time since we are not modifying the
    real file content.
    
    Fixes: #17922
    6dcd1bfa