Add missing dependency of ${target}_check to ${target}_make_apk

When building for and running the '_check' target in Android we need
to make sure that target apk is assembled and ready for deployment.

Pick-to: 6.2
Change-Id: Ifc63aac230f0bb8375d319ec443174c5a436485e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2021-11-16 17:35:09 +01:00
parent f8ab1f0576
commit aba1432dae

View File

@ -344,6 +344,9 @@ function(qt_internal_add_test name)
)
if(TARGET "${name}")
add_dependencies("${name}_check" "${name}")
if(ANDROID)
add_dependencies("${name}_check" "${name}_make_apk")
endif()
endif()
if(ANDROID OR IOS OR WINRT)