diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-09 14:56:41 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-09 14:56:41 (GMT) |
commit | e5421168143dda5f72088a6ff451785ec137e8c4 (patch) | |
tree | 0d1c49327000d3a1ad008f1acd69e6f3d4adb945 /Source/cmGeneratorTarget.cxx | |
parent | 7e3250da2fa0155a8c83b3aadef0407a701f2953 (diff) | |
download | CMake-e5421168143dda5f72088a6ff451785ec137e8c4.zip CMake-e5421168143dda5f72088a6ff451785ec137e8c4.tar.gz CMake-e5421168143dda5f72088a6ff451785ec137e8c4.tar.bz2 |
Refactor: cmGeneratorTarget::GetSourcesProperty returns cmProp
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 6bd41bd..4208689 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -62,7 +62,7 @@ cmProp cmTargetPropertyComputer::GetSources<cmGeneratorTarget>( cmGeneratorTarget const* tgt, cmMessenger* /* messenger */, cmListFileBacktrace const& /* context */) { - return cmProp(tgt->GetSourcesProperty()); + return tgt->GetSourcesProperty(); } template <> @@ -332,7 +332,7 @@ cmGeneratorTarget::cmGeneratorTarget(cmTarget* t, cmLocalGenerator* lg) cmGeneratorTarget::~cmGeneratorTarget() = default; -const std::string& cmGeneratorTarget::GetSourcesProperty() const +cmProp cmGeneratorTarget::GetSourcesProperty() const { std::vector<std::string> values; for (auto const& se : this->SourceEntries) { @@ -341,7 +341,7 @@ const std::string& cmGeneratorTarget::GetSourcesProperty() const static std::string value; value.clear(); value = cmJoin(values, ";"); - return value; + return cmProp(value); } cmGlobalGenerator* cmGeneratorTarget::GetGlobalGenerator() const |