summaryrefslogtreecommitdiffstats
path: root/cmake/QtModuleConfig.cmake.in
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-05-03 12:07:37 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-05-03 12:14:22 +0000
commit914b367c7f6a117130b8a56338c46a8102a1f77f (patch)
tree41e48599a25d481ab5362f599dbb8728abec7c13 /cmake/QtModuleConfig.cmake.in
parentc2379c469cb464df7c4ab78eb65e32f795ed050e (diff)
Fix finding host tools when cross-compiling
* When using a sysroot, just setting CMAKE_PREFIX_PATH to the QT_HOST_PATH is not sufficient in finding for example Qt5CoreTools because the QT_HOST_PATH would be prefixed by the sysroot. So this patch switches the mode to also enable looking outside of the sysroot. (done by Alexandru) * Once the Qt5CoreToolsConfigVersion.cmake was found, the built-in check for 32 vs. 64 bit compatibility by looking at the provided CMAKE_SIZEOF_VOID_P (4 when target is armv7 for example) and comparing it against the void* size used when building the tools would fail. Explicitly unsetting CMAKE_SIZEOF_VOID_P disables this check, and that's fine as we're not interested in any exported library targets -- where this could cause problems -- but merely programs to run. Change-Id: If2931dad023e39a3dbdaa17ac095131ad2c0ca60 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtModuleConfig.cmake.in')
0 files changed, 0 insertions, 0 deletions