summaryrefslogtreecommitdiffstats
path: root/Source/cmQTWrapCPPCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-11-06 14:35:48 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-11-06 14:35:48 (GMT)
commit319a5e007713726e1548148045b157eb286f1ef9 (patch)
treec58e4d05bfba8d63b6da93135ec826b9fe107409 /Source/cmQTWrapCPPCommand.cxx
parent05a884c675b0fb7693e46502c57f3cd663c5691d (diff)
downloadCMake-319a5e007713726e1548148045b157eb286f1ef9.zip
CMake-319a5e007713726e1548148045b157eb286f1ef9.tar.gz
CMake-319a5e007713726e1548148045b157eb286f1ef9.tar.bz2
BUG: CustomCommand has to use full path to Source file now
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");