summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapPythonCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-07 18:52:29 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-07 18:52:29 (GMT)
commit4f77d737c9d2ee681e17f5a672e18e85164550f1 (patch)
tree3fdcdaeac75422a958ff4e288adeafaf15de0ecf /Source/cmVTKWrapPythonCommand.cxx
parent5b4a11af80d27649ef191f918e92c3e41779e987 (diff)
downloadCMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.zip
CMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.tar.gz
CMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.tar.bz2
ENH: move utilities to targets from makefile, and add versioning to cache
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-rw-r--r--Source/cmVTKWrapPythonCommand.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx
index 7e8050f..0c1d6a2 100644
--- a/Source/cmVTKWrapPythonCommand.cxx
+++ b/Source/cmVTKWrapPythonCommand.cxx
@@ -56,8 +56,6 @@ bool cmVTKWrapPythonCommand::InitialPass(std::vector<std::string>& args)
return true;
}
- // add in a depend in the vtkVTKWrapPython executable
- m_Makefile->AddUtility("vtkWrapPython");
// what is the current source dir
std::string cdir = m_Makefile->GetCurrentDirectory();
@@ -124,10 +122,10 @@ void cmVTKWrapPythonCommand::FinalPass()
{
m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str());
std::string res = m_WrapClasses[classNum].GetSourceName() + ".cxx";
- std::string cmd = wpython + " " + m_WrapHeaders[classNum] + " "
+ std::string cmd = m_WrapHeaders[classNum] + " "
+ hints + (m_WrapClasses[classNum].IsAnAbstractClass() ? " 0 " : " 1 ") + " > " + m_WrapClasses[classNum].GetSourceName() + ".cxx";
m_Makefile->AddCustomCommand(m_WrapHeaders[classNum].c_str(),
- cmd.c_str(), depends,
+ wpython.c_str(), cmd.c_str(), depends,
res.c_str(), m_LibraryName.c_str());
}