diff options
author | Brad King <brad.king@kitware.com> | 2004-01-22 15:30:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-01-22 15:30:01 (GMT) |
commit | 49bd89fe31f9a5d064c9ae863798349838badc21 (patch) | |
tree | db2c4fc838ed7fa88d1ed2acf4e55436508aa6c0 /Source/kwsys | |
parent | f9a3f74d87a875e172c8128a3e2e5d215a54dd31 (diff) | |
download | CMake-49bd89fe31f9a5d064c9ae863798349838badc21.zip CMake-49bd89fe31f9a5d064c9ae863798349838badc21.tar.gz CMake-49bd89fe31f9a5d064c9ae863798349838badc21.tar.bz2 |
BUG: CopyFileIfDifferent should return success if the files did not differ or if the copy succeeded. It should return failure only if the files were different and the copy failed.
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index d525be3..825e27e 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -816,14 +816,13 @@ kwsys_stl::string SystemTools::ConvertToWindowsOutputPath(const char* path) } bool SystemTools::CopyFileIfDifferent(const char* source, - const char* destination) + const char* destination) { if(SystemTools::FilesDiffer(source, destination)) { - SystemTools::CopyFileAlways(source, destination); - return true; + return SystemTools::CopyFileAlways(source, destination); } - return false; + return true; } |