diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-11-04 14:39:52 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-11-05 13:04:56 +0100 |
commit | ca59c20939a09587662fa8fecd4e480b68244541 (patch) | |
tree | c48a2ce6e5492bc1f6bb7ca5b187cbe29030a889 /util | |
parent | 48faa8ed5a34f0780cded4546547cee96fc1dc2f (diff) |
CMake: Fix usage of cache variables in qt.toolchain.cmake
We have some cache variables that are used in our qt.toolchain.cmake
toolchain file, for example QT_CHAINLOAD_TOOLCHAIN_FILE. When CMake
runs a configure test with try_compile, our toolchain file is included
again, but only a restricted set of variables is available.
Add the variables that are used in our internal toolchain file to
CMAKE_TRY_COMPILE_PLATFORM_VARIABLES. This makes them visible for
try_compile calls operating on source files.
Also pass the variables via the environment to support try_compile
calls that operate on whole projects.
Fixes: QTBUG-87873
Change-Id: Iebca9e23686bec5072194b15482e1782b9367a0e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions