Makefiles: support shortened object filenames

This commit is contained in:
John Parent
2025-05-21 23:14:17 +02:00
committed by Ben Boeckel
parent b121adaa04
commit 3f33a5387a
18 changed files with 75 additions and 3 deletions

View File

@@ -201,6 +201,15 @@ void cmLocalUnixMakefileGenerator3::Generate()
this->WriteDirectoryInformationFile();
}
std::string cmLocalUnixMakefileGenerator3::GetObjectOutputRoot() const
{
if (this->UseShortObjectNames()) {
return cmStrCat(this->GetCurrentBinaryDirectory(), '/',
this->GetGlobalGenerator()->GetShortBinaryOutputDir());
}
return cmStrCat(this->GetCurrentBinaryDirectory(), "/CMakeFiles");
}
void cmLocalUnixMakefileGenerator3::ComputeHomeRelativeOutputPath()
{
// Compute the path to use when referencing the current output