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

moc property "Output Directory" does not handle absolute paths correctly.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 2.7.2
    • Build-time integration
    • None
    • Windows

    Description

      We use a separate build directory to speed up the build in all our projects.

      The "Output Directory" in "General" is set to:

      $(EDUBUILD)\$(SolutionName)\$(ProjectName)\$(Configuration)_$(PlatformName)\lib

      The "Intermediate Directory" in "General" set to:

      $(EDUBUILD)\$(SolutionName)\$(ProjectName)\$(Configuration)_$(PlatformName)

      Where the environment variable EDUBUILD is set to a path like {{E:\Build\ }}to a directory on a very fast drive.

      This works perfectly for all Visual Studio builds, except the Qt moc tools. I tried to set the "Output Directory" property in "Qt Meta Tools"->"moc" to the following values:

      • E:\Build\moc
      • $(IntDir)moc
      • \Build\moc
      • $(EDUBUILD)\moc{{}}

      In every case the output path results in an absolute path, all moc related output files are written into the project directory instead of the given path.

      Steps to Reproduce the Problem

      • Create a new Qt project with a moc step.
      • Set the "Intermediate Directory" for the whole project to any absolute path like "C:\build\"
      • Build the project.

      Expected Result

      • All intermediate files, including the generated moc files are created in the specified path.

      Actual Result

      • All intermediate files, except Qt related files, are created in the specified path.
      • The Qt related files are stored in the project directory.

       

       

      Attachments

        1. prop.png
          252 kB
          Tobias Erbsland

        Issue Links

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

          Activity

            People

              mecfc Miguel Costa
              drzoom Tobias Erbsland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes