summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalKdevelopGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-24 13:39:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-24 13:39:50 (GMT)
commit7cad270fa59aa0bd5d103498fc702cf37936e107 (patch)
tree47183b9f022fcf5c57a78461d519f46912cf0900 /Source/cmGlobalKdevelopGenerator.cxx
parent6d210015aa9c206e28eaf8997c7d9b4b3bc76555 (diff)
downloadCMake-7cad270fa59aa0bd5d103498fc702cf37936e107.zip
CMake-7cad270fa59aa0bd5d103498fc702cf37936e107.tar.gz
CMake-7cad270fa59aa0bd5d103498fc702cf37936e107.tar.bz2
ENH: fix warnings
Diffstat (limited to 'Source/cmGlobalKdevelopGenerator.cxx')
-rw-r--r--Source/cmGlobalKdevelopGenerator.cxx27
1 files changed, 14 insertions, 13 deletions
diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx
index 4ce771b..388ed13 100644
--- a/Source/cmGlobalKdevelopGenerator.cxx
+++ b/Source/cmGlobalKdevelopGenerator.cxx
@@ -80,24 +80,25 @@ void cmGlobalKdevelopGenerator::Generate()
//try to find the name of an executable so we have something to
//run from kdevelop for now just pick the first executable found
std::string executable;
- for (std::vector<cmLocalGenerator*>::const_iterator it=lgs.begin();
- it!=lgs.end(); it++)
- {
- cmMakefile* makefile=(*it)->GetMakefile();
-
- cmTargets& targets=makefile->GetTargets();
- for (cmTargets::iterator ti = targets.begin();
- ti != targets.end(); ti++)
+ for (std::vector<cmLocalGenerator*>::const_iterator lg=lgs.begin();
+ lg!=lgs.end(); lg++)
{
- 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;
}
}
- if (!executable.empty())
- break;
- }
// now create a project file
this->CreateProjectFile(outputDir, projectDir, projectName,
executable, cmakeFilePattern, fileToOpen);