mirror of
https://github.com/reactos/CMake.git
synced 2024-12-16 08:07:29 +00:00
cmLocalGenerator: Make GetFeature tail-recursive.
This commit is contained in:
parent
f4150bd88d
commit
314c9ae33b
@ -2384,11 +2384,12 @@ const char* cmLocalGenerator::GetFeature(const std::string& feature,
|
||||
{
|
||||
return value;
|
||||
}
|
||||
if(cmLocalGenerator* parent = this->GetParent())
|
||||
cmLocalGenerator* parent = this->GetParent();
|
||||
if(!parent)
|
||||
{
|
||||
return parent->GetFeature(feature, config);
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
return parent->GetFeature(feature, config);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user