Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
3.3.0
-
None
Description
Describe the bug
During the program compile step (not the MOC compiler) I have recently run into an issue where all of my moc_****.cpp files fail to compile due to unresolvable include paths. I have narrowed this down to the fact that when compiling those files they do not have the paths from referenced projects added to the include paths
To Reproduce
- Create a VS solution with 2 projects
- A QT Project that builds a moc file (QTProj)
- Another CPP project that has a file to include (RefProj)
- In the RefProj properties set VC++ Directories / All Header Files are Public = true
- Add RefProj as a project reference to the QTProj
- Include a header file from the RefProj in some header file that compiles to a moc file in the QTProj
- When you build the solution the raw QTProj files will all compile file, but the Moc file that includes the file from RefProj will fail due to not being able to find the include file
Expected behavior
The moc files should have access to all of the includes that the project files do during compilation.
Additional context
We just noticed this issue today (10/22), so if there was an update pushed within the last couple of days it was likely that update that did it.
Attachments
Issue Links
- duplicates
-
QTVSADDINBUG-1241 [REG 3.2.0->3.3.0] Public Include Directories of referenced projects are not promoted to moc
-
- Closed
-