From 6e5462b698462926fcd3fb9f7be05b5f9438d540 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 7 Aug 2003 14:37:50 -0400 Subject: [PATCH] ENH: Use the new signature --- Source/cmQTWrapUICommand.cxx | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/Source/cmQTWrapUICommand.cxx b/Source/cmQTWrapUICommand.cxx index 3296053b8..60d8c44a9 100644 --- a/Source/cmQTWrapUICommand.cxx +++ b/Source/cmQTWrapUICommand.cxx @@ -193,22 +193,27 @@ void cmQTWrapUICommand::FinalPass() mocargs.push_back(mocres); mocargs.push_back(hres); - m_Makefile->AddCustomCommand(m_WrapUserInterface[classNum].c_str(), - uic_exe.c_str(), hargs, depends, - hres.c_str(), m_LibraryName.c_str()); + depends.clear(); + depends.push_back(m_WrapUserInterface[classNum]); + m_Makefile->AddCustomCommandToOutput( + hres.c_str(), + uic_exe.c_str(), hargs, 0, + depends); depends.push_back(hres); - m_Makefile->AddCustomCommand(m_WrapUserInterface[classNum].c_str(), - uic_exe.c_str(), cxxargs, depends, - cxxres.c_str(), m_LibraryName.c_str()); + m_Makefile->AddCustomCommandToOutput( + cxxres.c_str(), + uic_exe.c_str(), cxxargs, 0, depends); + + depends.clear(); - depends.push_back(moc_exe); + depends.push_back(hres); - m_Makefile->AddCustomCommand(hres.c_str(), - moc_exe.c_str(), mocargs, depends, - mocres.c_str(), m_LibraryName.c_str()); + m_Makefile->AddCustomCommandToOutput( + mocres.c_str(), + moc_exe.c_str(), mocargs, 0, depends); }