fix in warning

This commit is contained in:
Ken Martin 2002-11-19 09:01:37 -05:00
parent 65a814c989
commit d5463f404c
1 changed files with 8 additions and 6 deletions

View File

@ -1248,13 +1248,15 @@ void cmSystemTools::cmCopyFile(const char* source,
{ {
cmSystemTools::Error("CopyFile failed to copy files!"); cmSystemTools::Error("CopyFile failed to copy files!");
} }
else
if (statSource.st_size != statDestination.st_size)
{ {
cmOStringStream msg; if (statSource.st_size != statDestination.st_size)
msg << "CopyFile failed to copy files (sizes differ, source: " {
<< statSource.st_size << " , dest: " << statDestination.st_size; cmOStringStream msg;
cmSystemTools::Error(msg.str().c_str()); msg << "CopyFile failed to copy files (sizes differ, source: "
<< statSource.st_size << " , dest: " << statDestination.st_size;
cmSystemTools::Error(msg.str().c_str());
}
} }
} }