Skip to content
  • Rolf Eike Beer's avatar
    use cmSystemTools::MoveFileIfDifferent() · 5b96fd5b
    Rolf Eike Beer authored
    This is better than doing CopyFileIfDifferent() followed by RemoveFile() in
    two ways:
    
     - it is more efficient, as it avoids disk I/O for the data, even if the
       files here are usually small
     - it is atomic, so an abort during the copy will not leave a destination file
       with partial data behind
    5b96fd5b