summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.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/cmLocalGenerator.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/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index bd7eb3f..6fc4597 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1873,8 +1873,7 @@ void cmLocalGenerator::AddArchitectureFlags(std::string& flags,
{
// Only add Apple specific flags on Apple platforms
if (target->IsApple() && this->EmitUniversalBinaryFlags) {
- std::vector<std::string> archs;
- target->GetAppleArchs(config, archs);
+ std::vector<std::string> archs = target->GetAppleArchs(config);
if (!archs.empty() &&
(lang == "C" || lang == "CXX" || lang == "OBJC" || lang == "OBJCXX" ||
lang == "ASM")) {
@@ -2594,7 +2593,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
std::vector<std::string> architectures;
if (!this->GetGlobalGenerator()->IsXcode()) {
- target->GetAppleArchs(config, architectures);
+ architectures = target->GetAppleArchs(config);
}
if (architectures.empty()) {
architectures.emplace_back();