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

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1 (rev.06)
    • Fix Version/s: None
    • Component/s: Build-time integration
    • Labels:
      None
    • Platform/s:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes