From 762c1561a81906ff52f85a0197fc040e21474db8 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Tue, 25 Mar 2025 15:49:51 +0100 Subject: [PATCH] Replace the manual chmod run with the file(CHMOD command Change the permissions for Android executable runner using file(CHMOD, this is allowed since we raised the minimum required CMake version to 3.20. Change-Id: If7d9fdf1e7b44a4da3b353ec1d9a2db5c4353973 Reviewed-by: Alexandru Croitor --- src/corelib/Qt6AndroidMacros.cmake | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/corelib/Qt6AndroidMacros.cmake b/src/corelib/Qt6AndroidMacros.cmake index 86e189ae883..d54b884c573 100644 --- a/src/corelib/Qt6AndroidMacros.cmake +++ b/src/corelib/Qt6AndroidMacros.cmake @@ -1730,9 +1730,12 @@ function(_qt_internal_android_create_runner_wrapper target) set(qt_core_configure_file_contents "${script_content}") configure_file("${template_file}" "${wrapper_path}") - if(CMAKE_HOST_UNIX) - execute_process(COMMAND chmod +x ${wrapper_path}) - endif() + file(CHMOD "${wrapper_path}" + PERMISSIONS + OWNER_READ OWNER_EXECUTE + GROUP_READ GROUP_EXECUTE + WORLD_READ WORLD_EXECUTE + ) endfunction() # Get the android runner script path and its arguments for a target