diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-16 17:45:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-16 17:47:05 (GMT) |
commit | fad0ee54041bf05f0d22b78e111b03eb368a213c (patch) | |
tree | c4dfc14f8929a9ec417da850f4b7d5c4e3c27265 /Source/cmGeneratorTarget.cxx | |
parent | 6f4b1ba96d724cbbc1642a7beb6ae9ec2b51d3bc (diff) | |
download | CMake-fad0ee54041bf05f0d22b78e111b03eb368a213c.zip CMake-fad0ee54041bf05f0d22b78e111b03eb368a213c.tar.gz CMake-fad0ee54041bf05f0d22b78e111b03eb368a213c.tar.bz2 |
cmTargetPropertyComputer::GetProperty: return cmProp
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index cb80fe6..af45893 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -52,11 +52,11 @@ class cmMessenger; template <> -const char* cmTargetPropertyComputer::GetSources<cmGeneratorTarget>( +cmProp cmTargetPropertyComputer::GetSources<cmGeneratorTarget>( cmGeneratorTarget const* tgt, cmMessenger* /* messenger */, cmListFileBacktrace const& /* context */) { - return tgt->GetSourcesProperty().c_str(); + return &tgt->GetSourcesProperty(); } template <> @@ -376,9 +376,9 @@ const char* cmGeneratorTarget::GetProperty(const std::string& prop) const this->GetBacktrace())) { return nullptr; } - if (const char* result = cmTargetPropertyComputer::GetProperty( + if (cmProp result = cmTargetPropertyComputer::GetProperty( this, prop, this->Makefile->GetMessenger(), this->GetBacktrace())) { - return result; + return result->c_str(); } if (cmSystemTools::GetFatalErrorOccured()) { return nullptr; |