summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-02 08:55:21 -0500
committerBrad King <brad.king@kitware.com>2015-03-02 08:55:21 -0500
commiteb3bced50fe7da40015a1d32dae96f0abf401ff6 (patch)
tree6ade9e2a8b008d2a9cadfd3d326dec07c2b6532d
parent6b6852a0ebe6d2c05ea500f78349e4fdbadcecd9 (diff)
parentb8ea771b13989f353c2762abd40a65b6d33a1eb7 (diff)
downloadcmake-eb3bced50fe7da40015a1d32dae96f0abf401ff6.tar.gz
Merge branch 'backport-KWSys-SystemTools-CopyFileAlways-fix' into release
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 27082115db..b03e7b018a 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -2330,6 +2330,10 @@ bool SystemTools::CopyFileAlways(const kwsys_stl::string& source, const kwsys_st
{
fout.write(buffer, fin.gcount());
}
+ else
+ {
+ break;
+ }
}
// Make sure the operating system has finished writing the file