Ninja: Fix <OBJECT_DIR> substitution
Don't forget the subdirectories.
This commit is contained in:
parent
572994bd9f
commit
c337c7e205
|
@ -131,7 +131,10 @@ cmNinjaNormalTargetGenerator
|
||||||
vars.CMTarget = this->GetTarget();
|
vars.CMTarget = this->GetTarget();
|
||||||
vars.Language = this->TargetLinkLanguage;
|
vars.Language = this->TargetLinkLanguage;
|
||||||
vars.Objects = "$in";
|
vars.Objects = "$in";
|
||||||
std::string objdir = cmake::GetCMakeFilesDirectoryPostSlash();
|
std::string objdir =
|
||||||
|
this->GetLocalGenerator()->GetHomeRelativeOutputPath();
|
||||||
|
objdir += objdir.empty() ? "" : "/";
|
||||||
|
objdir += cmake::GetCMakeFilesDirectoryPostSlash();
|
||||||
objdir += this->GetTargetName();
|
objdir += this->GetTargetName();
|
||||||
objdir += ".dir";
|
objdir += ".dir";
|
||||||
objdir = this->GetLocalGenerator()->Convert(objdir.c_str(),
|
objdir = this->GetLocalGenerator()->Convert(objdir.c_str(),
|
||||||
|
|
Loading…
Reference in New Issue