summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-27 16:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-27 16:33:04 (GMT)
commita4255ecf813120e4b764e78e6c50b34bd87b438a (patch)
tree303f653857feafbb552ef930d9f58d36dab87253 /Source/cmLocalGenerator.cxx
parentf6704357159366fc404491e02f1ea6cee87f0989 (diff)
downloadCMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.zip
CMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.tar.gz
CMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.tar.bz2
cmStateDirectory::GetProperty: return cmProp
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index e908180..8484c58 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2965,8 +2965,8 @@ const char* cmLocalGenerator::GetFeature(const std::string& feature,
}
cmStateSnapshot snp = this->StateSnapshot;
while (snp.IsValid()) {
- if (const char* value = snp.GetDirectory().GetProperty(featureName)) {
- return value;
+ if (cmProp value = snp.GetDirectory().GetProperty(featureName)) {
+ return value->c_str();
}
snp = snp.GetBuildsystemDirectoryParent();
}