Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
3.3.0
-
None
-
VS 2022
-
-
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
- is duplicated by
-
QTVSADDINBUG-1251 (MsBuild) moc file compilation no longer includes project references (issue #35)
- Closed
-
QTVSADDINBUG-1253 Cannot find some include h-files in moc_*.cpp (issue #37)
- Closed
-
QTVSADDINBUG-1238 build failure with latest qt vs plugin
- Closed
-
QTVSADDINBUG-1242 Cannot build prject since you updated VS Tools to 3.3
- Closed
- relates to
-
QTVSADDINBUG-1238 build failure with latest qt vs plugin
- Closed
-
QTVSADDINBUG-1239 Version 3.3 does not work with our project and precompiled headers
- Closed
-
QTVSADDINBUG-1225 Missing moc of files generated by repc
- Closed
-
QTVSADDINBUG-1242 Cannot build prject since you updated VS Tools to 3.3
- Closed