From ff33883fead48137d1a9b5de5d33d8b15a585811 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 15 Oct 2020 16:39:44 +0200 Subject: CMake: Fix building examples targeting iOS simulator with qmake The makefile generated by qmake when building an iOS example tries to execute the mkspecs/features/uikit/devices.py python script to find a simulator ID. When installing the mkspecs, we didn't preserve the source file permissions which means that the executable bit was stripped. This causes the makefile to call xcodebuild with an invalid simulator id due to not being able to execute the python script. Make sure to install the mkspecs directories preserving the source file permissions. Fixes: QTBUG-87639 Change-Id: Iaa33b740c93187155025891104e8a21c6e7c98c8 Reviewed-by: Cristian Adam --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 322e8a102a..f900ef2abc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,8 @@ if(NOT QT_BUILD_STANDALONE_TESTS) foreach(entry IN LISTS mkspecs_subdirs) if (IS_DIRECTORY ${entry}) qt_copy_or_install(DIRECTORY "${entry}" - DESTINATION ${mkspecs_install_dir}) + DESTINATION ${mkspecs_install_dir} + USE_SOURCE_PERMISSIONS) else() qt_copy_or_install(FILES "${entry}" DESTINATION ${mkspecs_install_dir}) -- cgit v1.2.3