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
    • 574fa4268 (dev)

    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

        Issue Links

          For Gerrit Dashboard: QTVSADDINBUG-987
          # Subject Branch Project Status CR V

          Activity

            People

              ali.demiralp Ali Can Demiralp
              rich4rd.macwan Richard Macwan
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes