CMake: pass ndk-stack path to androidtestrunner

CMake knows about the ndk path so always pass the ndk-stack path
and not rely on the env var being set.

Change-Id: I2cfd8e0708c6b284964dc3dc85b1f080742b125d
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Assam Boudjelthia 2023-12-08 12:11:48 +02:00
parent d2f15d65c7
commit 0919f97811

View File

@ -203,6 +203,7 @@ function(qt_internal_android_test_arguments target timeout out_test_runner out_t
"--skip-install-root"
"--make" "${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target ${target}_make_apk"
"--apk" "${apk_dir}/${target}.apk"
"--ndk-stack" "${ANDROID_NDK_ROOT}/ndk-stack"
"--timeout" "${timeout}"
"--verbose"
PARENT_SCOPE