mirror of
https://github.com/reactos/CMake.git
synced 2025-01-23 20:25:34 +00:00
fix in warning
This commit is contained in:
parent
65a814c989
commit
d5463f404c
@ -1248,13 +1248,15 @@ void cmSystemTools::cmCopyFile(const char* source,
|
||||
{
|
||||
cmSystemTools::Error("CopyFile failed to copy files!");
|
||||
}
|
||||
|
||||
if (statSource.st_size != statDestination.st_size)
|
||||
else
|
||||
{
|
||||
cmOStringStream msg;
|
||||
msg << "CopyFile failed to copy files (sizes differ, source: "
|
||||
<< statSource.st_size << " , dest: " << statDestination.st_size;
|
||||
cmSystemTools::Error(msg.str().c_str());
|
||||
if (statSource.st_size != statDestination.st_size)
|
||||
{
|
||||
cmOStringStream msg;
|
||||
msg << "CopyFile failed to copy files (sizes differ, source: "
|
||||
<< statSource.st_size << " , dest: " << statDestination.st_size;
|
||||
cmSystemTools::Error(msg.str().c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user