mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
cmLocalGenerator: Store a vector of generator targets.
Not a map from cmTarget to cmGeneratorTarget.
This commit is contained in:
@@ -68,13 +68,14 @@ void cmGlobalKdevelopGenerator::Generate()
|
||||
for (std::vector<cmLocalGenerator*>::const_iterator lg=lgs.begin();
|
||||
lg!=lgs.end(); lg++)
|
||||
{
|
||||
cmGeneratorTargetsType const& targets = (*lg)->GetGeneratorTargets();
|
||||
for (cmGeneratorTargetsType::const_iterator ti = targets.begin();
|
||||
ti != targets.end(); ti++)
|
||||
std::vector<cmGeneratorTarget*> const& targets =
|
||||
(*lg)->GetGeneratorTargets();
|
||||
for (std::vector<cmGeneratorTarget*>::const_iterator ti =
|
||||
targets.begin(); ti != targets.end(); ti++)
|
||||
{
|
||||
if (ti->second->GetType()==cmState::EXECUTABLE)
|
||||
if ((*ti)->GetType()==cmState::EXECUTABLE)
|
||||
{
|
||||
executable = ti->second->GetLocation("");
|
||||
executable = (*ti)->GetLocation("");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user