summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 2a88e3c..8e12eb6 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2376,16 +2376,16 @@ const char* cmLocalGenerator::GetFeature(const std::string& feature,
featureName += "_";
featureName += cmSystemTools::UpperCase(config);
}
- if(const char* value = this->Makefile->GetProperty(featureName))
+ cmLocalGenerator* lg = this;
+ while(lg)
{
- return value;
- }
- cmLocalGenerator* parent = this->GetParent();
- if(!parent)
- {
- return 0;
+ if(const char* value = lg->GetMakefile()->GetProperty(featureName))
+ {
+ return value;
+ }
+ lg = lg->GetParent();
}
- return parent->GetFeature(feature, config);
+ return 0;
}
//----------------------------------------------------------------------------