diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-06-30 17:53:08 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-06-30 17:53:08 (GMT) |
commit | e0c3d1e959961bc4f531bee5bff23bc7607ef7af (patch) | |
tree | 47908c459ef50cd63e694838555c9693436f4b2c /Source/cmVTKWrapPythonCommand.cxx | |
parent | 0b88e57e547907701e38ee21f403ce45effff881 (diff) | |
download | CMake-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/cmVTKWrapPythonCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapPythonCommand.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx index be21948..9000689 100644 --- a/Source/cmVTKWrapPythonCommand.cxx +++ b/Source/cmVTKWrapPythonCommand.cxx @@ -53,17 +53,11 @@ bool cmVTKWrapPythonCommand::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"; + std::string initName = m_LibraryName; + initName += "Init"; + sourceListValue += initName + ".cxx"; // get the list of classes for this library for(std::vector<std::string>::iterator j = (args.begin() + 2); @@ -93,6 +87,12 @@ bool cmVTKWrapPythonCommand::InitialPass(std::vector<std::string> const& argsIn) } } + cmSourceFile cfile; + cfile.SetIsAnAbstractClass(false); + this->CreateInitFile(res); + cfile.SetName(initName.c_str(), m_Makefile->GetCurrentOutputDirectory(), + "cxx",false); + m_Makefile->AddSource(cfile); m_Makefile->AddDefinition(m_SourceList.c_str(), sourceListValue.c_str()); return true; } |