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 <alexandru.croitor@qt.io>
This commit is contained in:
parent
be5845e8ca
commit
762c1561a8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user