Fix the copy path of the binary when building for Android in QtCreator

The target path of copy command should include
'libs/${CMAKE_ANDROID_ARCH_ABI}' to make the apk build procedure work
correctly in QtCreator.

Amends 87db26bdfe56e9445c03623eb962f569b2570b92

Pick-to: 6.3
Change-Id: Icaffc3d7418a9a4994f86e453b329a69452c5f0b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Alexey Edelev 2021-12-14 17:13:41 +01:00
parent 2e2f1e2af7
commit f51d677948

View File

@ -357,7 +357,7 @@ function(qt6_android_add_apk_target target)
DEPENDS ${target} ${extra_deps}
COMMAND ${CMAKE_COMMAND}
-E copy_if_different $<TARGET_FILE:${target}>
"${apk_final_dir}/$<TARGET_FILE_NAME:${target}>"
"${apk_final_dir}/${target_file_copy_relative_path}"
COMMENT "Copying ${target} binary to apk folder"
)