summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-23 13:45:24 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-23 13:45:24 (GMT)
commitf826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5 (patch)
tree537534219d3e967ed51889f7f493b9ef32ea8d4f /Source/cmGlobalUnixMakefileGenerator3.cxx
parent539e5ac4c2c27a49365022d66b228edacc46d24c (diff)
downloadCMake-f826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5.zip
CMake-f826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5.tar.gz
CMake-f826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5.tar.bz2
ENH: Centralized generation of targets listed in the help to be done by the code that actually writes the targets.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 255b1a3..a647a9c 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -1231,15 +1231,13 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule
}
}
}
- typedef cmLocalUnixMakefileGenerator3::LocalObjectInfo LocalObjectInfo;
- std::map<cmStdString, LocalObjectInfo> const& objs =
- lg->GetLocalObjectFiles();
- for(std::map<cmStdString, LocalObjectInfo>::const_iterator o =
- objs.begin(); o != objs.end(); ++o)
+ std::vector<cmStdString> const& localHelp = lg->GetLocalHelp();
+ for(std::vector<cmStdString>::const_iterator o = localHelp.begin();
+ o != localHelp.end(); ++o)
{
- path = "... ";
- path += o->first;
- lg->AppendEcho(commands, path.c_str());
+ path = "... ";
+ path += *o;
+ lg->AppendEcho(commands, path.c_str());
}
}
}