diff options
| author | Alexey Edelev <alexey.edelev@qt.io> | 2025-08-12 18:49:53 +0200 |
|---|---|---|
| committer | Alexey Edelev <alexey.edelev@qt.io> | 2025-08-20 16:34:18 +0200 |
| commit | 4f44f433329fcc3c81a9de71f9460dee8d962223 (patch) | |
| tree | ca0f5ffc83290d2b0753c4dc621e7b5e41375547 /src/widgets/doc/snippets/qtablewidget-using/mainwindow.cpp | |
| parent | 5992945869557cc58d81f6ec71ff20e5fe404e78 (diff) | |
Consider cross compilation when detecting host tools requirements
If Qt is crosscompiled it's not necessary that it always require host
tools to compile the application. That's why the pre-stored assumpion
in Qt6Dependencies.cmake is incorrect. When moving the Qt toolchain
to the target platform, this Qt becomes the native toolchain for this
platform, so the requirement is incorrect since this moment.
The detection should consider the CMAKE_CROSSCOMPILING flag and put
the host tools requirement only in this case. Also if user predefined
QT_HOST_TOOLS it also makes sense to require them and look for the
Qt6HostInfo package.
Pick-to: 6.10
Change-Id: I4c715eb2592ce79565787645aac172ff60b91493
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/qtablewidget-using/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions
