Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-987

Cannot set output path of moc_predefs.h

    XMLWordPrintable

Details

    • Windows

    Description

      There is currently no way to change the path where moc_predefs.h is generated.

      I prefer to have my build tree separate from my source code, for which I use $(OutDir) defined in General tab of Visual Studio  2019.

      Under Qt Meta_Object Compiler -> moc settings, I can set the Output Directory to $(OutDir). I was assuming that the moc_predefs.h would be generated at this location, but this is not the case. It is always generated at $(Configuration) location, which seems to be hardcoded somewhere and I cannot find it. 

      Reporting this as a bug because it breaks my workflow and I suppose having a build tree separate from the source tree is quite a common and reasonable requirement. With the current setting I have to live with having a debug folder having the moc_predefs.h file created within my source tree.

      Attachments

        Activity

          People

            mecfc Miguel Costa
            rich4rd.macwan Richard Macwan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: