mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
COMP: fix warning
This commit is contained in:
1 parent
1bca540e52
commit
17ebcb1bcd
1 file changed
+1
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user