summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGhsMultiGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-18 14:53:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-21 21:21:01 (GMT)
commita8c0fbcc194bca6986492278e705ff301f283378 (patch)
tree6eca4050b77be5106654aa50a9ad60a499d2419a /Source/cmGlobalGhsMultiGenerator.cxx
parente4b7d5afde91efafb59749a0a513732a089a6f0a (diff)
downloadCMake-a8c0fbcc194bca6986492278e705ff301f283378.zip
CMake-a8c0fbcc194bca6986492278e705ff301f283378.tar.gz
CMake-a8c0fbcc194bca6986492278e705ff301f283378.tar.bz2
cmLocalGenerator: Store a vector of generator targets.
Not a map from cmTarget to cmGeneratorTarget.
Diffstat (limited to 'Source/cmGlobalGhsMultiGenerator.cxx')
-rw-r--r--Source/cmGlobalGhsMultiGenerator.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/cmGlobalGhsMultiGenerator.cxx b/Source/cmGlobalGhsMultiGenerator.cxx
index 45a1509..7c33904 100644
--- a/Source/cmGlobalGhsMultiGenerator.cxx
+++ b/Source/cmGlobalGhsMultiGenerator.cxx
@@ -287,8 +287,8 @@ void cmGlobalGhsMultiGenerator::Generate()
{
cmLocalGhsMultiGenerator *lg =
static_cast<cmLocalGhsMultiGenerator *>(this->LocalGenerators[i]);
- cmGeneratorTargetsType tgts = lg->GetGeneratorTargets();
- this->UpdateBuildFiles(&tgts);
+ std::vector<cmGeneratorTarget*> tgts = lg->GetGeneratorTargets();
+ this->UpdateBuildFiles(tgts);
}
}
@@ -481,15 +481,15 @@ cmGlobalGhsMultiGenerator::GetFileNameFromPath(std::string const &path)
}
void cmGlobalGhsMultiGenerator::UpdateBuildFiles(
- cmGeneratorTargetsType *tgts)
+ std::vector<cmGeneratorTarget*> tgts)
{
- for (cmGeneratorTargetsType::iterator tgtsI = tgts->begin();
- tgtsI != tgts->end(); ++tgtsI)
+ for (std::vector<cmGeneratorTarget*>::iterator tgtsI = tgts.begin();
+ tgtsI != tgts.end(); ++tgtsI)
{
- const cmTarget *tgt(tgtsI->first);
- if (IsTgtForBuild(tgt))
+ const cmGeneratorTarget *tgt = *tgtsI;
+ if (IsTgtForBuild(tgt->Target))
{
- char const *rawFolderName = tgtsI->first->GetProperty("FOLDER");
+ char const *rawFolderName = tgt->GetProperty("FOLDER");
if (NULL == rawFolderName)
{
rawFolderName = "";
@@ -504,13 +504,13 @@ void cmGlobalGhsMultiGenerator::UpdateBuildFiles(
GhsMultiGpj::PROJECT);
}
std::vector<cmsys::String> splitPath = cmSystemTools::SplitString(
- cmGhsMultiTargetGenerator::GetRelBuildFileName(tgt));
+ cmGhsMultiTargetGenerator::GetRelBuildFileName(tgt->Target));
std::string foldNameRelBuildFile(*(splitPath.end() - 2) + "/" +
splitPath.back());
*this->TargetFolderBuildStreams[folderName] << foldNameRelBuildFile
<< " ";
GhsMultiGpj::WriteGpjTag(cmGhsMultiTargetGenerator::GetGpjTag(
- tgtsI->second),
+ tgt),
this->TargetFolderBuildStreams[folderName]);
}
}