diff options
author | Alexandru Croitor <[email protected]> | 2025-06-27 14:30:29 +0200 |
---|---|---|
committer | Alexandru Croitor <[email protected]> | 2025-06-28 12:08:15 +0200 |
commit | 9e05e86f973fc820f8fba4ea6edbfb210eeae1b5 (patch) | |
tree | 84da43526c70b85e7301f1417d5234b596224702 /examples/qtconcurrent/qtconcurrent.pro | |
parent | e5510913a14d5a92a64a8e6ebf7524c01b1f739e (diff) |
When building qt examples in-tree, in a cross-compiling case, with a
CMake version lower than 4.0, we lose AUTOGEN dependencies due to a
bug in cmake.
To ensure the dependencies are not lost, we need to apply the same
workaround we did for internal Qt targets.
For targets created by Qt's public API, we now query the target's
LINK_LIBRARIES and INTERFACE_LINK_LIBRARIES at finalizer time,
and add them to the AUTOGEN dependencies.
The implementation is also modified to remove duplicates.
We only apply the behavior in public API when QT_BUILDING_QT is true,
to reduce the risk for regular user projects.
The assumption here is when building a user project, Qt is already
fully built, so we don't need to ensure that Qt's sync headers and
autogen targets are up to date.
Pick-to: 6.5 6.8 6.9 6.10
Fixes: QTBUG-137587
Task-number: QTBUG-133725
Change-Id: I61bd799ca39d92702ca0fc48d54bb517fc55baeb
Reviewed-by: Alexey Edelev <[email protected]>
Diffstat (limited to 'examples/qtconcurrent/qtconcurrent.pro')
0 files changed, 0 insertions, 0 deletions