diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-12-14 09:30:00 -0500 |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-12-14 09:30:28 -0500 |
commit | c34b4497f8d595390d8e5a9d216de9ddc95a47eb (patch) | |
tree | 51662f8532e04391c56d3fcd245ec2069e93a1bd /Source/cmTargetPropCommandBase.cxx | |
parent | 2d53894c31c9d6849c67f4c218c0aefed1eb7921 (diff) | |
download | cmake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.gz |
cmTarget: add std::string overloads
Diffstat (limited to 'Source/cmTargetPropCommandBase.cxx')
-rw-r--r-- | Source/cmTargetPropCommandBase.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/cmTargetPropCommandBase.cxx b/Source/cmTargetPropCommandBase.cxx index bbc1e16f76..0de8d6d05a 100644 --- a/Source/cmTargetPropCommandBase.cxx +++ b/Source/cmTargetPropCommandBase.cxx @@ -84,9 +84,7 @@ bool cmTargetPropCommandBase::HandleArguments( } ++argIndex; - this->Target->SetProperty("PRECOMPILE_HEADERS_REUSE_FROM", - args[argIndex].c_str()); - + this->Target->SetProperty("PRECOMPILE_HEADERS_REUSE_FROM", args[argIndex]); ++argIndex; } @@ -162,9 +160,8 @@ void cmTargetPropCommandBase::HandleInterfaceContent( const char* propValue = tgt->GetProperty(propName); const std::string totalContent = this->Join(content) + (propValue ? std::string(";") + propValue : std::string()); - tgt->SetProperty(propName, totalContent.c_str()); + tgt->SetProperty(propName, totalContent); } else { - tgt->AppendProperty("INTERFACE_" + this->Property, - this->Join(content).c_str()); + tgt->AppendProperty("INTERFACE_" + this->Property, this->Join(content)); } } |