summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapJavaCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmVTKWrapJavaCommand.cxx')
-rw-r--r--Source/cmVTKWrapJavaCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmVTKWrapJavaCommand.cxx b/Source/cmVTKWrapJavaCommand.cxx
index 033cf09..bfa8235 100644
--- a/Source/cmVTKWrapJavaCommand.cxx
+++ b/Source/cmVTKWrapJavaCommand.cxx
@@ -124,7 +124,9 @@ void cmVTKWrapJavaCommand::FinalPass()
m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str());
// wrap java
- std::string res = m_WrapClasses[classNum].GetSourceName() + ".cxx";
+ std::string res = m_Makefile->GetCurrentOutputDirectory();
+ res += "/";
+ res += m_WrapClasses[classNum].GetSourceName() + ".cxx";
std::string res2 = resultDirectory + "/" +
m_OriginalNames[classNum] + ".java";