add bool return value so diagnostics are easier

This commit is contained in:
Bill Hoffman 2002-02-06 10:50:17 -05:00
parent caa49f2a1e
commit 80f716941e
2 changed files with 4 additions and 2 deletions

View File

@ -749,13 +749,15 @@ void cmSystemTools::Message(const char* m1, const char *title)
} }
void cmSystemTools::CopyFileIfDifferent(const char* source, bool cmSystemTools::CopyFileIfDifferent(const char* source,
const char* destination) const char* destination)
{ {
if(cmSystemTools::FilesDiffer(source, destination)) if(cmSystemTools::FilesDiffer(source, destination))
{ {
cmSystemTools::cmCopyFile(source, destination); cmSystemTools::cmCopyFile(source, destination);
return true;
} }
return false;
} }

View File

@ -174,7 +174,7 @@ public:
* Copy the source file to the destination file only * Copy the source file to the destination file only
* if the two files differ. * if the two files differ.
*/ */
static void CopyFileIfDifferent(const char* source, static bool CopyFileIfDifferent(const char* source,
const char* destination); const char* destination);
///! Compare the contents of two files. Return true if different. ///! Compare the contents of two files. Return true if different.