Merge topic 'fix-compile-OBJECT_DIR'
03f3b4e
Replace <OBJECT_DIR> rule placeholder consistently (#14667)
This commit is contained in:
commit
7a63192074
|
@ -338,13 +338,11 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
|
|||
vars.CMTarget = this->Target;
|
||||
vars.Language = linkLanguage;
|
||||
vars.Objects = buildObjs.c_str();
|
||||
std::string objdir = cmake::GetCMakeFilesDirectoryPostSlash();
|
||||
objdir += this->Target->GetName();
|
||||
objdir += ".dir";
|
||||
objdir = this->Convert(objdir.c_str(),
|
||||
cmLocalGenerator::START_OUTPUT,
|
||||
cmLocalGenerator::SHELL);
|
||||
vars.ObjectDir = objdir.c_str();
|
||||
std::string objectDir = this->Target->GetSupportDirectory();
|
||||
objectDir = this->Convert(objectDir.c_str(),
|
||||
cmLocalGenerator::START_OUTPUT,
|
||||
cmLocalGenerator::SHELL);
|
||||
vars.ObjectDir = objectDir.c_str();
|
||||
vars.Target = targetOutPathReal.c_str();
|
||||
vars.TargetPDB = targetOutPathPDB.c_str();
|
||||
|
||||
|
|
|
@ -580,13 +580,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
|
|||
vars.CMTarget = this->Target;
|
||||
vars.Language = linkLanguage;
|
||||
vars.Objects = buildObjs.c_str();
|
||||
std::string objdir = cmake::GetCMakeFilesDirectoryPostSlash();
|
||||
objdir += this->Target->GetName();
|
||||
objdir += ".dir";
|
||||
objdir = this->Convert(objdir.c_str(),
|
||||
cmLocalGenerator::START_OUTPUT,
|
||||
cmLocalGenerator::SHELL);
|
||||
vars.ObjectDir = objdir.c_str();
|
||||
std::string objectDir = this->Target->GetSupportDirectory();
|
||||
objectDir = this->Convert(objectDir.c_str(),
|
||||
cmLocalGenerator::START_OUTPUT,
|
||||
cmLocalGenerator::SHELL);
|
||||
vars.ObjectDir = objectDir.c_str();
|
||||
vars.Target = targetOutPathReal.c_str();
|
||||
vars.LinkLibraries = linkLibs.c_str();
|
||||
vars.ObjectsQuoted = buildObjs.c_str();
|
||||
|
|
|
@ -647,7 +647,7 @@ cmMakefileTargetGenerator
|
|||
cmLocalGenerator::NONE,
|
||||
cmLocalGenerator::SHELL).c_str();
|
||||
vars.Object = shellObj.c_str();
|
||||
std::string objectDir = cmSystemTools::GetFilenamePath(obj);
|
||||
std::string objectDir = this->Target->GetSupportDirectory();
|
||||
objectDir = this->Convert(objectDir.c_str(),
|
||||
cmLocalGenerator::START_OUTPUT,
|
||||
cmLocalGenerator::SHELL);
|
||||
|
|
|
@ -568,7 +568,7 @@ cmNinjaTargetGenerator
|
|||
}
|
||||
EnsureParentDirectoryExists(objectFileName);
|
||||
|
||||
std::string objectDir = cmSystemTools::GetFilenamePath(objectFileName);
|
||||
std::string objectDir = this->Target->GetSupportDirectory();
|
||||
vars["OBJECT_DIR"] = this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||
ConvertToNinjaPath(objectDir.c_str()).c_str(),
|
||||
cmLocalGenerator::SHELL);
|
||||
|
|
Loading…
Reference in New Issue