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

[REG 3.2.0->3.3.0] Public Include Directories of referenced projects are not promoted to moc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 3.3.0
    • 3.3.0
    • None
    • VS 2022
    • Windows
    • 7f79e1b3e (dev)

    Description

      After updating to version 3.3.0, the following configuration does not work any more:

      • My VS solution contains several C++ projects where e.g. an app project A depends on a static lib project B
      • Project A has a project reference to B in order to link it
      • Project B also exposes its project directory as "Public Include Directory" (under Project Properties > VC++ Directories)

      This way, project A has access to the includes of project B via angle brackets.

      • Project A contains a QObject subclass to moc whose header also includes a header of project B

      When compiling the resulting moc_xxxx.cpp file from project A, the include of project B cannot be found and error C1083 occurs. It seems that the Public Include Directories are not promoted to moc or the post-compile step, respectively.

      The problem can be reproduced with the minimal example in the attachment under version 3.3.0. It works with version 3.2.0. So, this is a regression.

      Attachments

        Issue Links

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

          Activity

            People

              ali.demiralp Ali Can Demiralp
              k-fee Matthias Schütze
              Votes:
              15 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes