mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 17:39:51 -05:00
cmLocalGenerator: Make GetFeature tail-recursive.
This commit is contained in:
@@ -2384,11 +2384,12 @@ const char* cmLocalGenerator::GetFeature(const std::string& feature,
|
|||||||
{
|
{
|
||||||
return value;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user