Details
-
User Story
-
Resolution: Done
-
P2: Important
-
None
Description
Example:
- Have a foo.cpp file that includes foo.h that includes bar.h
- Have foo.cpp #include "foo.moc"
Currently if bar.h is changed, automoc will not rerun moc on foo.cpp. This is because automoc doesn't transfer the dependencies of foo.cpp to foo.moc, nor does it run the preprocessor on foo.moc to figure out the dependencies.
We will need this when doing feature re-configuration (for example you build qtbase with opengl feature enabled, and then you reconfigure with opengl feature disabled).
Currently moc is not rerun, and you get build failures.
Upstream issue
https://gitlab.kitware.com/cmake/cmake/issues/19058
https://gitlab.kitware.com/cmake/cmake/issues/17750
Attachments
For Gerrit Dashboard: QTBUG-74521 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
284277,15 | Teach moc to output a Make-style depfile | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |