summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-06-30 17:53:08 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-06-30 17:53:08 (GMT)
commite0c3d1e959961bc4f531bee5bff23bc7607ef7af (patch)
tree47908c459ef50cd63e694838555c9693436f4b2c /Source/cmVTKWrapTclCommand.cxx
parent0b88e57e547907701e38ee21f403ce45effff881 (diff)
downloadCMake-e0c3d1e959961bc4f531bee5bff23bc7607ef7af.zip
CMake-e0c3d1e959961bc4f531bee5bff23bc7607ef7af.tar.gz
CMake-e0c3d1e959961bc4f531bee5bff23bc7607ef7af.tar.bz2
fixed commands that were setting definitions in final pass to set definitions in initial pass
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx21
1 files changed, 10 insertions, 11 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index f7107f6..7dc38a6 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -94,17 +94,7 @@ bool cmVTKWrapTclCommand::InitialPass(std::vector<std::string> const& argsIn)
// Create the init file
std::string res = m_LibraryName;
res += "Init.cxx";
- this->CreateInitFile(res);
-
- // add the init file
- cmSourceFile cfile;
- cfile.SetIsAnAbstractClass(false);
- std::string newName = m_LibraryName;
- newName += "Init";
- cfile.SetName(newName.c_str(), m_Makefile->GetCurrentOutputDirectory(),
- "cxx",false);
- m_Makefile->AddSource(cfile);
- sourceListValue += newName + ".cxx";
+ sourceListValue += res;
for(std::vector<std::string>::iterator j = (sources.begin() + 1);
j != sources.end(); ++j)
@@ -132,6 +122,15 @@ bool cmVTKWrapTclCommand::InitialPass(std::vector<std::string> const& argsIn)
sourceListValue += newName + ".cxx";
}
}
+ // add the init file
+ cmSourceFile cfile;
+ cfile.SetIsAnAbstractClass(false);
+ std::string newName = m_LibraryName;
+ newName += "Init";
+ this->CreateInitFile(res);
+ cfile.SetName(newName.c_str(), m_Makefile->GetCurrentOutputDirectory(),
+ "cxx",false);
+ m_Makefile->AddSource(cfile);
m_Makefile->AddDefinition(m_SourceList.c_str(), sourceListValue.c_str());
}