diff options
| author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-06-03 17:50:16 +0200 |
|---|---|---|
| committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-06-07 16:48:57 +0000 |
| commit | 5ddb13d0d4fc6d4f45dc1f0fb49ed65a299d88dd (patch) | |
| tree | 540dbbe46d8b8b04d3fb299a5a1c3cbc5f6d8ed9 /src/testlib/qtestcase.cpp | |
| parent | 4dfc58264449932648f3e7a31b3ef4494e20d54a (diff) | |
| download | qtbase-5ddb13d0d4fc6d4f45dc1f0fb49ed65a299d88dd.tar.gz | |
CMake: Fix Android multi-abi builds in Qt Creator
Qt Creator passes -DANDROID_NDK to the main project configuration
whereas the Qt toolchain file expects -DANDROID_NDK_ROOT.
This causes the configuration of the sub-builds to fail not finding
the android toolchain, and trying to use the CI ndk toolchain path.
Make sure to consider both variables.
Also change the conditions to evaluate the variable as a variable
explicitly, to avoid passing an empty option if the variable is
unset. If the variable is unset, CMake would treat the variable as
an actual string which would always not equal the empty string.
Amends d6919b073aaae617f1ff37d18da14e315f202005
Pick-to: 6.3 6.4
Task-number: QTBUG-104013
Task-number: QTBUG-102041
Change-Id: Ifee48953ce50bc616c49c59d72e845c6d9418187
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
0 files changed, 0 insertions, 0 deletions
