ENH: fix warnings
This commit is contained in:
parent
6d210015aa
commit
7cad270fa5
@ -80,24 +80,25 @@ void cmGlobalKdevelopGenerator::Generate()
|
|||||||
//try to find the name of an executable so we have something to
|
//try to find the name of an executable so we have something to
|
||||||
//run from kdevelop for now just pick the first executable found
|
//run from kdevelop for now just pick the first executable found
|
||||||
std::string executable;
|
std::string executable;
|
||||||
for (std::vector<cmLocalGenerator*>::const_iterator it=lgs.begin();
|
for (std::vector<cmLocalGenerator*>::const_iterator lg=lgs.begin();
|
||||||
it!=lgs.end(); it++)
|
lg!=lgs.end(); lg++)
|
||||||
{
|
|
||||||
cmMakefile* makefile=(*it)->GetMakefile();
|
|
||||||
|
|
||||||
cmTargets& targets=makefile->GetTargets();
|
|
||||||
for (cmTargets::iterator ti = targets.begin();
|
|
||||||
ti != targets.end(); ti++)
|
|
||||||
{
|
{
|
||||||
if (ti->second.GetType()==cmTarget::EXECUTABLE)
|
cmMakefile* makefile=(*lg)->GetMakefile();
|
||||||
|
cmTargets& targets=makefile->GetTargets();
|
||||||
|
for (cmTargets::iterator ti = targets.begin();
|
||||||
|
ti != targets.end(); ti++)
|
||||||
|
{
|
||||||
|
if (ti->second.GetType()==cmTarget::EXECUTABLE)
|
||||||
|
{
|
||||||
|
executable = ti->second.GetProperty("LOCATION");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!executable.empty())
|
||||||
{
|
{
|
||||||
executable = ti->second.GetProperty("LOCATION");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!executable.empty())
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// now create a project file
|
// now create a project file
|
||||||
this->CreateProjectFile(outputDir, projectDir, projectName,
|
this->CreateProjectFile(outputDir, projectDir, projectName,
|
||||||
executable, cmakeFilePattern, fileToOpen);
|
executable, cmakeFilePattern, fileToOpen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user