summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 285b2d1..f08018e 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;