diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-27 16:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-27 16:33:04 (GMT) |
commit | a4255ecf813120e4b764e78e6c50b34bd87b438a (patch) | |
tree | 303f653857feafbb552ef930d9f58d36dab87253 /Source/cmLocalGenerator.cxx | |
parent | f6704357159366fc404491e02f1ea6cee87f0989 (diff) | |
download | CMake-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.cxx | 4 |
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(); } |