diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index b1cd324e1..abfb8ccbf 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -3044,7 +3044,9 @@ void cmLocalUnixMakefileGenerator3 { cmakefileStream << " \"" << (*csIter)->GetFullPath() << "\"\n"; // Get the full path name of the object file. - std::string obj = this->GetObjectFileName(target, **csIter); + std::string obj = m_Makefile->GetStartOutputDirectory(); + obj += "/"; + obj += this->GetObjectFileName(target, **csIter); cmakefileStream << " \"" << this->Convert(obj.c_str(), cmLocalGenerator::FULL).c_str() << "\"\n";