mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
Merge topic 'use-generator-target'
879fd35Revert "Move GenerateTargetManifest to cmGeneratorTarget."6674583Fix compiler warning with initialization order.5285458Add convenience for getting a cmGeneratorTarget to use.c31f3d9Add a wrapper for accessing config-specific compile-definitions.d1446caAppend the COMPILE_DEFINITIONS from the Makefile to all targets.290e92aMove GetIncludeDirectories to cmGeneratorTarget.f9146f6Port cmLocalGenerator::GetTargetFlags to cmGeneratorTarget.9facfd1Move GetCreateRuleVariable to cmGeneratorTarget.78bfee3Make cmLocalGenerator::AddArchitectureFlags take a cmGeneratorTarget.4f5384eMove GetLinkInformation to cmGeneratorTarget987e12eMove GenerateTargetManifest to cmGeneratorTarget.14bf778Store cmGeneratorTargets with the makefile.f428ca2Add more forwarding API to 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.
|
||||
@@ -1950,7 +1953,8 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
||||
BuildObjectListOrString dirs(this, this->XcodeVersion >= 30);
|
||||
BuildObjectListOrString fdirs(this, this->XcodeVersion >= 30);
|
||||
std::vector<std::string> includes;
|
||||
this->CurrentLocalGenerator->GetIncludeDirectories(includes, &target);
|
||||
cmGeneratorTarget *gtgt = this->GetGeneratorTarget(&target);
|
||||
this->CurrentLocalGenerator->GetIncludeDirectories(includes, gtgt);
|
||||
std::set<cmStdString> emitted;
|
||||
emitted.insert("/System/Library/Frameworks");
|
||||
for(std::vector<std::string>::iterator i = includes.begin();
|
||||
@@ -2625,7 +2629,8 @@ void cmGlobalXCodeGenerator
|
||||
}
|
||||
|
||||
// Compute the link library and directory information.
|
||||
cmComputeLinkInformation* pcli = cmtarget->GetLinkInformation(configName);
|
||||
cmGeneratorTarget* gtgt = this->GetGeneratorTarget(cmtarget);
|
||||
cmComputeLinkInformation* pcli = gtgt->GetLinkInformation(configName);
|
||||
if(!pcli)
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user