summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapPythonCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-rw-r--r--Source/cmVTKWrapPythonCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx
index 09e8acc..56691d3 100644
--- a/Source/cmVTKWrapPythonCommand.cxx
+++ b/Source/cmVTKWrapPythonCommand.cxx
@@ -129,7 +129,9 @@ void cmVTKWrapPythonCommand::FinalPass()
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 res = m_Makefile->GetCurrentOutputDirectory();
+ res += "/";
+ res += m_WrapClasses[classNum].GetSourceName() + ".cxx";
std::vector<std::string> args;
args.push_back(m_WrapHeaders[classNum]);
args.push_back(hints);