Browse Source

BUG: Patch from Filipe Sousa. QT_WRAP_CPP should generate the file moc_dlgmain.ui.cxx instead of moc_dlgmain.cxx.

Brad King 20 years ago
parent
commit
83a1af15ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmQTWrapCPPCommand.cxx

+ 1 - 1
Source/cmQTWrapCPPCommand.cxx

@@ -57,7 +57,7 @@ bool cmQTWrapCPPCommand::InitialPass(std::vector<std::string> const& argsIn)
         {
         file.SetProperty("ABSTRACT",curr->GetProperty("ABSTRACT"));
         }
-      std::string srcName = cmSystemTools::GetFilenameWithoutExtension(*j);
+      std::string srcName = cmSystemTools::GetFilenameWithoutLastExtension(*j);
       std::string newName = "moc_" + srcName;
       file.SetName(newName.c_str(), m_Makefile->GetCurrentOutputDirectory(),
                    "cxx",false);