diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-08-21 15:55:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-25 16:29:23 (GMT) |
commit | a48bb185c31ee17d9d8bb9f33ce7a00dd01f4fb5 (patch) | |
tree | 5823bed007c5ec593439cc1c3e08d577276d3585 /Help/guide/tutorial/Step12/MathFunctions/MathFunctions.cxx | |
parent | aaa5eab410c2e3fe41ebf7a2316be9c51572dbd2 (diff) | |
download | CMake-a48bb185c31ee17d9d8bb9f33ce7a00dd01f4fb5.zip CMake-a48bb185c31ee17d9d8bb9f33ce7a00dd01f4fb5.tar.gz CMake-a48bb185c31ee17d9d8bb9f33ce7a00dd01f4fb5.tar.bz2 |
AutoGen: Fix moc and uic dependencies when building Qt itself
When building Qt itself, the moc and uic executables are spcecified
via a generator expression of the form $<TARGET_FILE:Qt6::moc>,
which ends populating Moc's and Uic's 'Executable' field but not the
ExecutableTarget and ExecutableTargetName fields.
In such a scenario, the code in
cmQtAutoGenInitializer::InitAutogenTarget fails to add a dependency
on moc (or uic), because ExecutableTarget is null. First try to add
a dependency on the ExecutableTarget if it's not empty, otherwise try
to add a dependency on the path specified in the 'Executable' field.
Issue: #21118
Diffstat (limited to 'Help/guide/tutorial/Step12/MathFunctions/MathFunctions.cxx')
0 files changed, 0 insertions, 0 deletions