COMP: fix warning

This commit is contained in:
Ken Martin 2006-04-12 11:56:27 -04:00
parent 1bca540e52
commit 17ebcb1bcd
1 changed files with 1 additions and 2 deletions

View File

@ -1019,11 +1019,10 @@ cmLocalGenerator* cmGlobalGenerator::FindLocalGenerator(const char* start_dir)
cmTarget* cmGlobalGenerator::FindTarget(const char* project,
const char* name)
{
std::vector<cmLocalGenerator*>* gens = &this->LocalGenerators;
// if project specific
if(project)
{
gens = &this->ProjectMap[project];
std::vector<cmLocalGenerator*>* gens = &this->ProjectMap[project];
for(unsigned int i = 0; i < gens->size(); ++i)
{
cmTarget* ret = (*gens)[i]->GetMakefile()->FindTarget(name);