diff options
author | Brad King <brad.king@kitware.com> | 2006-08-23 13:45:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-23 13:45:24 (GMT) |
commit | f826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5 (patch) | |
tree | 537534219d3e967ed51889f7f493b9ef32ea8d4f /Source/cmGlobalUnixMakefileGenerator3.cxx | |
parent | 539e5ac4c2c27a49365022d66b228edacc46d24c (diff) | |
download | CMake-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.cxx | 14 |
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()); } } } |