summaryrefslogtreecommitdiffstats
path: root/Source/cmQTWrapCPPCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmQTWrapCPPCommand.cxx')
-rw-r--r--Source/cmQTWrapCPPCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmQTWrapCPPCommand.cxx b/Source/cmQTWrapCPPCommand.cxx
index 8592307..f3bfc97 100644
--- a/Source/cmQTWrapCPPCommand.cxx
+++ b/Source/cmQTWrapCPPCommand.cxx
@@ -126,7 +126,9 @@ void cmQTWrapCPPCommand::FinalPass()
m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str());
// set up moc command
- 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("-o");