diff options
author | Daniel Levin <dendy.ua@gmail.com> | 2015-01-19 01:18:39 -0500 |
---|---|---|
committer | Kevin Funk <kevin.funk@kdab.com> | 2015-12-21 16:05:36 +0000 |
commit | a206583da1bee8fdc90b58bbc8d067ba724de203 (patch) | |
tree | b203a7f269cba7403a9701863d31fdd734b1c393 /mkspecs/aix-xlc/qplatformdefs.h | |
parent | 32e4546cc3b38dd8a15eaac07dc79c48acea5ce7 (diff) |
Add DEPENDS option to qt5_wrap_cpp()
Currently the moc rule does not support dependency scanning, so after
successful moc file generation it will ignore implicit dependencies
in the header file.
Although this works in most typical scenarios, at least in one case
incremental builds become broken: when using Q_PLUGIN_METADATA() with
the FILE argument.
If FILE refers to a JSON file and latter was updated, then the expected
behavior is to regenerate the moc file. Since CMake add_custom_command()
does not support late dependency setup, all dependencies should be
explicitly listed in a DEPENDS section.
This patch adds the DEPENDS multiarg option to qt5_wrap_cpp(),
allowing to specify additional dependencies to the moc rule.
Task-number: QTBUG-44009
Change-Id: I2052ce23d3cb0c87c6bd99fcb7e8a71a7be9a330
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Daniel Levin <dendy.ua@gmail.com>
Diffstat (limited to 'mkspecs/aix-xlc/qplatformdefs.h')
0 files changed, 0 insertions, 0 deletions