diff --git a/SystemTools.cxx b/SystemTools.cxx index dba0dc3d983a62c13bb463b88cc6912d0bf8d6e4..4808c1a0cf848ee76e41e097403e9903870eeca7 100644 --- a/SystemTools.cxx +++ b/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; }