summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalKdevelopGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-25 19:28:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-27 19:58:50 (GMT)
commitc7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e (patch)
tree6628b5e991d2d35f1776f12b6ae427e2bd222792 /Source/cmGlobalKdevelopGenerator.cxx
parent5b60eaf619baf4dfa2bc1a3f1109ff742a04f532 (diff)
downloadCMake-c7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e.zip
CMake-c7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e.tar.gz
CMake-c7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e.tar.bz2
Always access target location from a cmGeneratorTarget instance.
Diffstat (limited to 'Source/cmGlobalKdevelopGenerator.cxx')
-rw-r--r--Source/cmGlobalKdevelopGenerator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx
index 98557cc..6611c74 100644
--- a/Source/cmGlobalKdevelopGenerator.cxx
+++ b/Source/cmGlobalKdevelopGenerator.cxx
@@ -70,13 +70,13 @@ void cmGlobalKdevelopGenerator::Generate()
lg!=lgs.end(); lg++)
{
cmMakefile* makefile=(*lg)->GetMakefile();
- cmTargets& targets=makefile->GetTargets();
- for (cmTargets::iterator ti = targets.begin();
+ cmGeneratorTargetsType const& targets = makefile->GetGeneratorTargets();
+ for (cmGeneratorTargetsType::const_iterator ti = targets.begin();
ti != targets.end(); ti++)
{
- if (ti->second.GetType()==cmTarget::EXECUTABLE)
+ if (ti->second->GetType()==cmTarget::EXECUTABLE)
{
- executable = ti->second.GetLocation("");
+ executable = ti->second->Target->GetLocation("");
break;
}
}