Fix building of unit tests for Android in developer build
Currently it is not possible to build unit tests for Android in a developer build. This patch fixes this. Fixes: QTBUG-94882 Change-Id: I30ccacc4536032ee3a7fbf05ce90bbbcdb8331a6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
a0e605e458
commit
00a5d9f849
@ -81,7 +81,13 @@ function(qt6_android_generate_deployment_settings target)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(qt_android_install_dir "${QT6_INSTALL_PREFIX}")
|
||||
# Required to build unit tests in developer build
|
||||
if(QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX)
|
||||
set(qt_android_install_dir "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}")
|
||||
else()
|
||||
set(qt_android_install_dir "${QT6_INSTALL_PREFIX}")
|
||||
endif()
|
||||
|
||||
file(TO_CMAKE_PATH "${qt_android_install_dir}" qt_android_install_dir_native)
|
||||
string(APPEND file_contents
|
||||
" \"qt\": \"${qt_android_install_dir_native}\",\n")
|
||||
|
Loading…
Reference in New Issue
Block a user