summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-01 21:52:36 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-01 21:52:36 (GMT)
commit6d5508e64b970d0e0b3efa3625e9b7dddefc2566 (patch)
tree687dfdbb8b224ea78cc49d5d6518ace08af2ee1f /Source/cmVTKWrapTclCommand.cxx
parent1d4a3aa48e8781f1252a98b59a0736336a4f54bd (diff)
downloadCMake-6d5508e64b970d0e0b3efa3625e9b7dddefc2566.zip
CMake-6d5508e64b970d0e0b3efa3625e9b7dddefc2566.tar.gz
CMake-6d5508e64b970d0e0b3efa3625e9b7dddefc2566.tar.bz2
fixed bug in limiting to source lists
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx35
1 files changed, 16 insertions, 19 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index 44579d9..7f3958a 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -71,27 +71,24 @@ bool cmVTKWrapTclCommand::Invoke(std::vector<std::string>& args)
for(std::vector<std::string>::iterator j = (args.begin() + 2);
j != args.end(); ++j)
{
- for(cmMakefile::SourceMap::iterator l = Classes.begin();
- l != Classes.end(); l++)
+ cmMakefile::SourceMap::iterator l = Classes.find(*j);
+ for(std::vector<cmSourceFile>::iterator i = l->second.begin();
+ i != l->second.end(); i++)
{
- for(std::vector<cmSourceFile>::iterator i = l->second.begin();
- i != l->second.end(); i++)
+ cmSourceFile &curr = *i;
+ // if we should wrap the class
+ if (!curr.GetWrapExclude())
{
- cmSourceFile &curr = *i;
- // if we should wrap the class
- if (!curr.GetWrapExclude())
- {
- cmSourceFile file;
- file.SetIsAnAbstractClass(curr.IsAnAbstractClass());
- std::string newName = curr.GetSourceName() + "Tcl";
- file.SetName(newName.c_str(), m_Makefile->GetCurrentOutputDirectory(),
- "cxx",false);
- std::string hname = cdir + "/" + curr.GetSourceName() + ".h";
- m_WrapHeaders.push_back(hname);
- // add starting depends
- file.GetDepends().push_back(hname);
- m_WrapClasses.push_back(file);
- }
+ cmSourceFile file;
+ file.SetIsAnAbstractClass(curr.IsAnAbstractClass());
+ std::string newName = curr.GetSourceName() + "Tcl";
+ file.SetName(newName.c_str(), m_Makefile->GetCurrentOutputDirectory(),
+ "cxx",false);
+ std::string hname = cdir + "/" + curr.GetSourceName() + ".h";
+ m_WrapHeaders.push_back(hname);
+ // add starting depends
+ file.GetDepends().push_back(hname);
+ m_WrapClasses.push_back(file);
}
}
}