BUG: Attempt to fix CopyFile problem using flush before check for success.
This commit is contained in:
parent
6435f608b9
commit
c96c3c382f
@ -1247,6 +1247,11 @@ void cmSystemTools::cmCopyFile(const char* source,
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure the operating system has finished writing the file
|
||||
// before closing it. This will ensure the file is finished before
|
||||
// the check below.
|
||||
fout.flush();
|
||||
|
||||
fin.close();
|
||||
fout.close();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user