aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/customitems/flipable/9_club.png
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@qt.io>2021-09-02 20:34:33 +1000
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-03 15:10:42 +0000
commit067253fb2f1aec3e03c577dd53ed2e6d903c28da (patch)
tree4943022f316b8d12ce38a4b38ec1ecbe70a2b83a /examples/quick/customitems/flipable/9_club.png
parent52b60051b5c2c210cc9731bc533268cb2c782db9 (diff)
Fix top level builds where AUTOMOC_EXECUTABLE was unset on some targets
The qt_example_build_end() command tries to recursively find all build system targets by descending into all source directories. Some sets of examples re-use the same source directory multiple times with different build directories, but this hides all but one of those re-used source directories from the recursive search. This resulted in some targets being missed, which in turn prevented qt_autogen_tools() from being called on them. In top level builds, this meant AUTOMOC_EXECUTABLE wasn't set, so CMake tried to verify the moc it wanted to use, which doesn't exist for the first configure of a top level build, resulting in a fatal error. Since we can't find all targets reliably with a recursive search, manually handle the ones that could be missed. There was a similar problem with qt_autogen_tools() not being called for a target created to compile a doc snippet. The error message is the same as the case above, the cause is again AUTOMOC_EXECUTABLE not being set, but for a different reason. Apply the same fix and call it manually, which should have been the case originally. Fixes: QTBUG-96118 Fixes: QTBUG-96159 Change-Id: I079c696cf74f77d7caa2c59e6263d3fb1c55d20e Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 920a5f727b02cade81fac0a5536e52bbb4c72d73) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/quick/customitems/flipable/9_club.png')
0 files changed, 0 insertions, 0 deletions