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.Language = this->TargetLinkLanguage;
|
||||
vars.Objects = "$in";
|
||||
std::string objdir = cmake::GetCMakeFilesDirectoryPostSlash();
|
||||
std::string objdir =
|
||||
this->GetLocalGenerator()->GetHomeRelativeOutputPath();
|
||||
objdir += objdir.empty() ? "" : "/";
|
||||
objdir += cmake::GetCMakeFilesDirectoryPostSlash();
|
||||
objdir += this->GetTargetName();
|
||||
objdir += ".dir";
|
||||
objdir = this->GetLocalGenerator()->Convert(objdir.c_str(),
|
||||
|
|
Loading…
Reference in New Issue