path: root/mkspecs/features
diff options
authorDaniel Levin <>2015-01-19 01:18:39 -0500
committerKevin Funk <>2015-12-21 16:05:36 +0000
commita206583da1bee8fdc90b58bbc8d067ba724de203 (patch)
treeb203a7f269cba7403a9701863d31fdd734b1c393 /mkspecs/features
parent32e4546cc3b38dd8a15eaac07dc79c48acea5ce7 (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 <> Reviewed-by: Olivier Goffart (Woboq GmbH) <> Reviewed-by: Daniel Levin <>
Diffstat (limited to 'mkspecs/features')
0 files changed, 0 insertions, 0 deletions