diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-10-06 15:23:05 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-10-07 13:26:01 +0200 |
commit | 3cb4f45ca8476aee0e67caae159d3fbb80354c54 (patch) | |
tree | 41bf3205551430eb79caf3c193990cd512f6982b /cmake/README.md | |
parent | 9ef4411d81ddab7a8d3ea46b0323fa5287806ea1 (diff) |
CMake: Introduce QT_CHAINLOAD_TOOLCHAIN_FILE
This variable can be set when using qt-cmake[-private] to override the
CMake toolchain file that is chainloaded by Qt's toolchain file.
Task-number: QTBUG-87068
Change-Id: Id529408381e4174becda1ba07a489535c8cf1314
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/README.md')
-rw-r--r-- | cmake/README.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/README.md b/cmake/README.md index 3ac875605f..54c5f1094e 100644 --- a/cmake/README.md +++ b/cmake/README.md @@ -262,6 +262,8 @@ A Qt installation's bin directory contains a number of convenience scripts. This is a wrapper around the CMake executable which passes a Qt-internal `CMAKE_TOOLCHAIN_FILE`. Use this to build projects against the installed Qt. +To use a custom toolchain file, use `-DQT_CHAINLOAD_TOOLCHAIN_FILE=<file path>`. + ## qt-cmake-private The same as `qt-cmake`, but in addition, sets the CMake generator to Ninja. |