cmLocalGenerator: Store imported targets in a separate container.
This commit is contained in:
parent
def6da616b
commit
9b244cc0ec
@ -1606,6 +1606,7 @@ void cmGlobalGenerator::CreateGeneratorTargets(TargetTypes targetTypes,
|
|||||||
{
|
{
|
||||||
cmGeneratorTarget* gt = new cmGeneratorTarget(*j, lg);
|
cmGeneratorTarget* gt = new cmGeneratorTarget(*j, lg);
|
||||||
this->GeneratorTargets[*j] = gt;
|
this->GeneratorTargets[*j] = gt;
|
||||||
|
lg->AddImportedGeneratorTarget(gt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -455,6 +455,11 @@ void cmLocalGenerator::AddGeneratorTarget(cmGeneratorTarget* gt)
|
|||||||
this->GeneratorTargets.push_back(gt);
|
this->GeneratorTargets.push_back(gt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cmLocalGenerator::AddImportedGeneratorTarget(cmGeneratorTarget* gt)
|
||||||
|
{
|
||||||
|
this->ImportedGeneratorTargets.push_back(gt);
|
||||||
|
}
|
||||||
|
|
||||||
struct NamedGeneratorTargetFinder
|
struct NamedGeneratorTargetFinder
|
||||||
{
|
{
|
||||||
NamedGeneratorTargetFinder(std::string const& name)
|
NamedGeneratorTargetFinder(std::string const& name)
|
||||||
|
@ -121,6 +121,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AddGeneratorTarget(cmGeneratorTarget* gt);
|
void AddGeneratorTarget(cmGeneratorTarget* gt);
|
||||||
|
void AddImportedGeneratorTarget(cmGeneratorTarget* gt);
|
||||||
|
|
||||||
cmGeneratorTarget* FindGeneratorTarget(const std::string& name) const;
|
cmGeneratorTarget* FindGeneratorTarget(const std::string& name) const;
|
||||||
cmGeneratorTarget* FindGeneratorTargetToUse(const std::string& name) const;
|
cmGeneratorTarget* FindGeneratorTargetToUse(const std::string& name) const;
|
||||||
@ -373,6 +374,7 @@ protected:
|
|||||||
|
|
||||||
std::set<cmGeneratorTarget const*> WarnCMP0063;
|
std::set<cmGeneratorTarget const*> WarnCMP0063;
|
||||||
std::vector<cmGeneratorTarget*> GeneratorTargets;
|
std::vector<cmGeneratorTarget*> GeneratorTargets;
|
||||||
|
std::vector<cmGeneratorTarget*> ImportedGeneratorTargets;
|
||||||
std::map<std::string, std::string> AliasTargets;
|
std::map<std::string, std::string> AliasTargets;
|
||||||
|
|
||||||
bool EmitUniversalBinaryFlags;
|
bool EmitUniversalBinaryFlags;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user