summaryrefslogtreecommitdiff
path: root/Source/cmGeneratorTarget.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/cmGeneratorTarget.cxx
parent1ec4c6579117634ddb20962cdb63313dbf79887e (diff)
downloadcmake-93afe804ce4949823dc4521d555811720afd7783.tar.gz
cmGeneratorTarget: Convert GetAppleArchs output argument to return value
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 4cfa1d76e7..541c2a6593 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -3448,11 +3448,12 @@ std::string cmGeneratorTarget::GetCompilePDBDirectory(
return "";
}
-void cmGeneratorTarget::GetAppleArchs(const std::string& config,
- std::vector<std::string>& archVec) const
+std::vector<std::string> cmGeneratorTarget::GetAppleArchs(
+ std::string const& config) const
{
+ std::vector<std::string> archVec;
if (!this->IsApple()) {
- return;
+ return archVec;
}
cmValue archs = nullptr;
if (!config.empty()) {
@@ -3469,6 +3470,7 @@ void cmGeneratorTarget::GetAppleArchs(const std::string& config,
if (archVec.empty()) {
this->Makefile->GetDefExpandList("_CMAKE_APPLE_ARCHS_DEFAULT", archVec);
}
+ return archVec;
}
void cmGeneratorTarget::AddExplicitLanguageFlags(std::string& flags,