diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-02 07:18:37 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-24 18:04:37 (GMT) |
commit | e3078aa15328439e239b2beb4085dc644ec465ec (patch) | |
tree | 9b177090bf07b83d8c8701413a371b0095f4dc53 /Source/cmLocalGenerator.cxx | |
parent | 7441fde34abf5a3eab58917b8bf4acb89d72c00c (diff) | |
download | CMake-e3078aa15328439e239b2beb4085dc644ec465ec.zip CMake-e3078aa15328439e239b2beb4085dc644ec465ec.tar.gz CMake-e3078aa15328439e239b2beb4085dc644ec465ec.tar.bz2 |
cmLocalGenerator: Implement GetFeature in terms of cmState.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 8e12eb6..c2d1a7d 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2376,14 +2376,14 @@ const char* cmLocalGenerator::GetFeature(const std::string& feature, featureName += "_"; featureName += cmSystemTools::UpperCase(config); } - cmLocalGenerator* lg = this; - while(lg) + cmState::Snapshot snp = this->StateSnapshot; + while(snp.IsValid()) { - if(const char* value = lg->GetMakefile()->GetProperty(featureName)) + if(const char* value = snp.GetDirectory().GetProperty(featureName)) { return value; } - lg = lg->GetParent(); + snp = snp.GetBuildsystemDirectoryParent(); } return 0; } |