diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 285b2d1e6..f08018edd 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1724,8 +1724,8 @@ cmLocalUnixMakefileGenerator3 } obj += fileTargetDirectory; - obj = cmSystemTools::RelativePath - (this->Makefile->GetHomeOutputDirectory(), obj.c_str()); + // Object names are specified relative to the current build dir. + obj = this->Convert(obj.c_str(), START_OUTPUT); obj += "/"; obj += objectName; return obj;