diff options
author | Brad King <brad.king@kitware.com> | 2019-09-05 10:31:56 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-05 10:31:56 -0400 |
commit | 5acf0de1feb83a8ec5d8f1348091501919b17cad (patch) | |
tree | 0d95a98e98ed5832159b97cbf8bc2fd521d7d3e1 /Source/cmMakefileTargetGenerator.cxx | |
parent | 6db8f6a410d99e9a66847530bb520b329d2f1a9e (diff) | |
download | cmake-5acf0de1feb83a8ec5d8f1348091501919b17cad.tar.gz |
cmLocalGenerator: Remove AppendFlags 'const char*' overload
Update call sites to ensure the `std::string` argument can be
constructed safely.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 4a60aa9354..1f6986b58e 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -89,12 +89,12 @@ void cmMakefileTargetGenerator::GetTargetLinkFlags( std::string& flags, const std::string& linkLanguage) { this->LocalGenerator->AppendFlags( - flags, this->GeneratorTarget->GetProperty("LINK_FLAGS")); + flags, this->GeneratorTarget->GetSafeProperty("LINK_FLAGS")); std::string linkFlagsConfig = cmStrCat("LINK_FLAGS_", cmSystemTools::UpperCase(this->ConfigName)); this->LocalGenerator->AppendFlags( - flags, this->GeneratorTarget->GetProperty(linkFlagsConfig)); + flags, this->GeneratorTarget->GetSafeProperty(linkFlagsConfig)); std::vector<std::string> opts; this->GeneratorTarget->GetLinkOptions(opts, this->ConfigName, linkLanguage); |