Merge branch 'ninja-check-root-robustly' into release
This commit is contained in:
commit
244e3d0fc9
@ -130,7 +130,7 @@ public:
|
|||||||
std::string ConvertToOptionallyRelativeOutputPath(const std::string& remote);
|
std::string ConvertToOptionallyRelativeOutputPath(const std::string& remote);
|
||||||
|
|
||||||
///! set/get the parent generator
|
///! set/get the parent generator
|
||||||
cmLocalGenerator* GetParent(){return this->Parent;}
|
cmLocalGenerator* GetParent() const {return this->Parent;}
|
||||||
void SetParent(cmLocalGenerator* g) { this->Parent = g; g->AddChild(this); }
|
void SetParent(cmLocalGenerator* g) { this->Parent = g; g->AddChild(this); }
|
||||||
|
|
||||||
///! set/get the children
|
///! set/get the children
|
||||||
|
@ -182,8 +182,7 @@ cmake* cmLocalNinjaGenerator::GetCMakeInstance()
|
|||||||
|
|
||||||
bool cmLocalNinjaGenerator::isRootMakefile() const
|
bool cmLocalNinjaGenerator::isRootMakefile() const
|
||||||
{
|
{
|
||||||
return (strcmp(this->Makefile->GetCurrentDirectory(),
|
return !this->GetParent();
|
||||||
this->GetCMakeInstance()->GetHomeDirectory()) == 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmLocalNinjaGenerator::WriteBuildFileTop()
|
void cmLocalNinjaGenerator::WriteBuildFileTop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user