mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
ENH: move utilities to targets from makefile, and add versioning to cache
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user