diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-06 15:50:17 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-06 15:50:17 (GMT) |
commit | 80f716941e42acee28509d1d0c1529bf589ffbd7 (patch) | |
tree | 0532adad2525c7ea042d3f7fe0ca2bf8f1562c2c /Source | |
parent | caa49f2a1e8ed8e73f53ed76ec65c5d089eccab5 (diff) | |
download | CMake-80f716941e42acee28509d1d0c1529bf589ffbd7.zip CMake-80f716941e42acee28509d1d0c1529bf589ffbd7.tar.gz CMake-80f716941e42acee28509d1d0c1529bf589ffbd7.tar.bz2 |
add bool return value so diagnostics are easier
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 | ||||
-rw-r--r-- | Source/cmSystemTools.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index ff61100..9b82735 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -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) { if(cmSystemTools::FilesDiffer(source, destination)) { cmSystemTools::cmCopyFile(source, destination); + return true; } + return false; } diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 883a8f4..ed48e85 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -174,7 +174,7 @@ public: * Copy the source file to the destination file only * if the two files differ. */ - static void CopyFileIfDifferent(const char* source, + static bool CopyFileIfDifferent(const char* source, const char* destination); ///! Compare the contents of two files. Return true if different. |