diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index f948e30f8..67511c439 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1814,11 +1814,9 @@ cmLocalUnixMakefileGenerator3 for(std::vector::const_iterator i = objects.begin(); i != objects.end(); ++i) { - object.clear(); - object += *i; ruleFileStream << " \\\n" - << this->ConvertToQuotedOutputPath(object.c_str()); + << this->ConvertToQuotedOutputPath(i->c_str()); } ruleFileStream << "\n";