summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <[email protected]>2025-03-25 15:49:51 +0100
committerAlexey Edelev <[email protected]>2025-03-27 06:42:41 +0100
commit762c1561a81906ff52f85a0197fc040e21474db8 (patch)
tree04debcbec5c467d841b884c3081b3fe63749cf26
parentbe5845e8ca8d4a8d5b9606295b672b591c660a01 (diff)
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 <[email protected]>
-rw-r--r--src/corelib/Qt6AndroidMacros.cmake9
1 files 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