summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-11-19 14:01:37 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-11-19 14:01:37 (GMT)
commitd5463f404c83bf7f3b9b2381d5c2dfeafd8f722e (patch)
treefa2713bb217df84101cdd7bb0a0cf40b114defb7
parent65a814c989c1ff44d61660b628fbf45d5fdc2b95 (diff)
downloadCMake-d5463f404c83bf7f3b9b2381d5c2dfeafd8f722e.zip
CMake-d5463f404c83bf7f3b9b2381d5c2dfeafd8f722e.tar.gz
CMake-d5463f404c83bf7f3b9b2381d5c2dfeafd8f722e.tar.bz2
fix in warning
-rw-r--r--Source/cmSystemTools.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 18a6211..1b0cbc5 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -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());
+ }
}
}