mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
Make cmLocalGenerator::AddArchitectureFlags take a cmGeneratorTarget.
This commit is contained in:
@@ -1713,7 +1713,10 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
||||
|
||||
// Set target-specific architectures.
|
||||
std::vector<std::string> archs;
|
||||
target.GetAppleArchs(configName, archs);
|
||||
{
|
||||
cmGeneratorTarget *gtgt = this->GetGeneratorTarget(&target);
|
||||
gtgt->GetAppleArchs(configName, archs);
|
||||
}
|
||||
if(!archs.empty())
|
||||
{
|
||||
// Enable ARCHS attribute.
|
||||
|
||||
Reference in New Issue
Block a user