CMake: Fix error in qt_generate_deploy_app_script
...when using a Qt cross-built for embedded Linux and NO_UNSUPPORTED_PLATFORM_ERROR set. Attempting to install such a project will now give the following output: -- Skipping runtime deployment steps. Support for installing runtime dependencies is not implemented for this target platform (Linux, shared Qt libs, cross-compiled). Pick-to: 6.5 6.6 Fixes: QTBUG-114069 Change-Id: Idd2af2135d2ca3cc0e5eeafb7701e891f8a0cc25 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
dfd07205e5
commit
7c82a49e6f
@ -3194,6 +3194,10 @@ function(qt6_generate_deploy_app_script)
|
||||
set(qt_build_type_string "static Qt libs")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CROSSCOMPILING)
|
||||
string(APPEND qt_build_type_string ", cross-compiled")
|
||||
endif()
|
||||
|
||||
set(generate_args
|
||||
TARGET ${arg_TARGET}
|
||||
OUTPUT_SCRIPT deploy_script
|
||||
@ -3239,7 +3243,8 @@ qt6_deploy_runtime_dependencies(
|
||||
${common_deploy_args})
|
||||
")
|
||||
|
||||
elseif(UNIX AND NOT APPLE AND NOT ANDROID AND QT6_IS_SHARED_LIBS_BUILD)
|
||||
elseif(UNIX AND NOT APPLE AND NOT ANDROID AND QT6_IS_SHARED_LIBS_BUILD
|
||||
AND NOT CMAKE_CROSSCOMPILING)
|
||||
qt6_generate_deploy_script(${generate_args}
|
||||
CONTENT "
|
||||
qt6_deploy_runtime_dependencies(
|
||||
|
Loading…
Reference in New Issue
Block a user