summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-14 21:11:27 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-15 14:18:41 (GMT)
commit43e973eba2681788c7acf7a4fcdf261bcf6a622a (patch)
treed46cab93c35d8b3b92613fb919c5448c6881dbd6 /Source/cmGlobalXCodeGenerator.cxx
parent93afe804ce4949823dc4521d555811720afd7783 (diff)
downloadCMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.zip
CMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.tar.gz
CMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.tar.bz2
cmGeneratorTarget: Pass language to GetAppleArchs when possible
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 6fca5f4..1396357 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2513,7 +2513,8 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
}
// Set target-specific architectures.
- std::vector<std::string> archs = gtgt->GetAppleArchs(configName);
+ std::vector<std::string> archs =
+ gtgt->GetAppleArchs(configName, cm::nullopt);
if (!archs.empty()) {
// Enable ARCHS attribute.