summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-14 21:01:45 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-15 14:11:37 (GMT)
commit93afe804ce4949823dc4521d555811720afd7783 (patch)
tree44a3c3a094b1df4a25ddc9aec5bea238d7ba96b2 /Source/cmMakefileTargetGenerator.cxx
parent1ec4c6579117634ddb20962cdb63313dbf79887e (diff)
downloadCMake-93afe804ce4949823dc4521d555811720afd7783.zip
CMake-93afe804ce4949823dc4521d555811720afd7783.tar.gz
CMake-93afe804ce4949823dc4521d555811720afd7783.tar.bz2
cmGeneratorTarget: Convert GetAppleArchs output argument to return value
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 2ead739..a7e5eca 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -541,8 +541,8 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags()
*this->FlagFileStream << language << "_DEFINES = " << defines << "\n\n";
*this->FlagFileStream << language << "_INCLUDES = " << includes << "\n\n";
- std::vector<std::string> architectures;
- this->GeneratorTarget->GetAppleArchs(this->GetConfigName(), architectures);
+ std::vector<std::string> architectures =
+ this->GeneratorTarget->GetAppleArchs(this->GetConfigName());
architectures.emplace_back();
for (const std::string& arch : architectures) {
@@ -671,8 +671,8 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(
std::string configUpper = cmSystemTools::UpperCase(config);
// Add precompile headers dependencies
- 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();
}