diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-09-10 19:11:15 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-09-10 19:11:15 (GMT) |
commit | 0fe42a98572f2339ee763a475ecdd003c8a80ac8 (patch) | |
tree | 26a6c316b460bbb65de5a7d4a826d38ae9086696 /Source/cmVTKWrapPythonCommand.cxx | |
parent | 5acb894e585f6f65741c102e74fd826b2250eb11 (diff) | |
download | CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.zip CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.gz CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.bz2 |
various windows fixes
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapPythonCommand.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx index 3f8b7d4..3dfdb46 100644 --- a/Source/cmVTKWrapPythonCommand.cxx +++ b/Source/cmVTKWrapPythonCommand.cxx @@ -106,6 +106,8 @@ void cmVTKWrapPythonCommand::FinalPass() std::vector<std::string> depends; std::string wpython = "${VTK_WRAP_PYTHON_EXE}"; std::string hints = "${VTK_WRAP_HINTS}"; + + m_Makefile->ExpandVariablesInString(hints); // Create the init file std::string res = m_LibraryName; @@ -123,14 +125,19 @@ void cmVTKWrapPythonCommand::FinalPass() // wrap all the .h files depends.push_back(wpython); + depends.push_back(hints); for(int classNum = 0; classNum < lastClass; classNum++) { m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str()); std::string res = m_WrapClasses[classNum].GetSourceName() + ".cxx"; - std::string cmd = m_WrapHeaders[classNum] + " " - + hints + (m_WrapClasses[classNum].IsAnAbstractClass() ? " 0 " : " 1 ") + " > " + m_WrapClasses[classNum].GetSourceName() + ".cxx"; + std::vector<std::string> args; + args.push_back(m_WrapHeaders[classNum]); + args.push_back(hints); + args.push_back((m_WrapClasses[classNum].IsAnAbstractClass() ? "0" : "1")); + args.push_back(">"); + args.push_back(res); m_Makefile->AddCustomCommand(m_WrapHeaders[classNum].c_str(), - wpython.c_str(), cmd.c_str(), depends, + wpython.c_str(), args, depends, res.c_str(), m_LibraryName.c_str()); } |