summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 2517912..53ab425 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -1295,7 +1295,11 @@ void cmLocalUnixMakefileGenerator::OutputLibraryRule(std::ostream& fout,
commands);
}
// Add a target with the canonical name (no prefix, suffix or path).
- this->OutputMakeRule(fout, comment, name, tgt.c_str(), 0);
+ this->OutputMakeRule(fout,
+ comment,
+ name,
+ this->ConvertToRelativeOutputPath(tgt.c_str()).c_str(),
+ 0);
}