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/cmTarget.cxx | |
parent | f6704357159366fc404491e02f1ea6cee87f0989 (diff) | |
download | CMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.zip CMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.tar.gz CMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.tar.bz2 |
cmStateDirectory::GetProperty: return cmProp
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 8b51690..93c168a 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1779,8 +1779,11 @@ const char* cmTarget::GetProperty(const std::string& prop) const const bool chain = impl->Makefile->GetState()->IsPropertyChained(prop, cmProperty::TARGET); if (chain) { - return impl->Makefile->GetStateSnapshot().GetDirectory().GetProperty( + retVal = impl->Makefile->GetStateSnapshot().GetDirectory().GetProperty( prop, chain); + if (retVal) { + return retVal->c_str(); + } } return nullptr; } |