summaryrefslogtreecommitdiff
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-14 17:01:45 -0400
committerBrad King <brad.king@kitware.com>2023-03-15 10:11:37 -0400
commit93afe804ce4949823dc4521d555811720afd7783 (patch)
tree44a3c3a094b1df4a25ddc9aec5bea238d7ba96b2 /Source/cmNinjaTargetGenerator.cxx
parent1ec4c6579117634ddb20962cdb63313dbf79887e (diff)
downloadcmake-93afe804ce4949823dc4521d555811720afd7783.tar.gz
cmGeneratorTarget: Convert GetAppleArchs output argument to return value
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index dc56142dc7..ce5e501c77 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -169,9 +169,9 @@ std::string cmNinjaTargetGenerator::ComputeFlagsForObject(
cmSourceFile const* source, const std::string& language,
const std::string& config)
{
- std::vector<std::string> architectures;
std::unordered_map<std::string, std::string> pchSources;
- this->GeneratorTarget->GetAppleArchs(config, architectures);
+ std::vector<std::string> architectures =
+ this->GeneratorTarget->GetAppleArchs(config);
if (architectures.empty()) {
architectures.emplace_back();
}
@@ -1390,8 +1390,8 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement(
// Add precompile headers dependencies
std::vector<std::string> depList;
- std::vector<std::string> architectures;
- this->GeneratorTarget->GetAppleArchs(config, architectures);
+ std::vector<std::string> architectures =
+ this->GeneratorTarget->GetAppleArchs(config);
if (architectures.empty()) {
architectures.emplace_back();
}