aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-12-21 18:37:07 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-01-09 21:01:16 +0100
commit061891ffe258d86339bf7ab29a5961a2cc4cb835 (patch)
tree637c8866a4efe8186802889d551deb6933107a8b /tests/manual
parent2c85fd352f480f77d8727d98b7c02014b6f8ccf6 (diff)
windowembedding example: Disable signing via target property
Using the global CMake variable doesn't work as expected. For iOS we keep signing, as it's required, and the issue with the qmldir file doesn't appear because the iOS build is static. Task-number: QTBUG-120479 Pick-to: 6.7 Change-Id: Icc876cd0717636301f2b10e6c00d79b4fc1c858c Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/windowembedding/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/manual/windowembedding/CMakeLists.txt b/tests/manual/windowembedding/CMakeLists.txt
index 36691119f4..f8fc7f7287 100644
--- a/tests/manual/windowembedding/CMakeLists.txt
+++ b/tests/manual/windowembedding/CMakeLists.txt
@@ -59,8 +59,12 @@ if(APPLE)
"-framework AVFoundation"
"-framework AVKit"
)
- # Xcode fails to sign Contents/PlugIns/shared/qmldir
- set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO")
+ if(NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
+ # Xcode fails to sign Contents/PlugIns/shared/qmldir
+ set_target_properties(windowembedding PROPERTIES
+ XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO"
+ )
+ endif()
endif()
# The add_qml_module_to_macos_app_bundle helper from 'shared'