summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject/XCTestAddBundle.cmake
diff options
context:
space:
mode:
authorYauheni Khnykin <yauheni.khnykin@here.com>2021-07-22 08:40:50 (GMT)
committerBrad King <brad.king@kitware.com>2021-07-26 17:31:10 (GMT)
commit0b5301a778cb22b1179dd21d709494dfe74add41 (patch)
treed5effa35b740fc09f12ef804ad823f285b208f78 /Tests/RunCMake/XcodeProject/XCTestAddBundle.cmake
parent0615aeffbfa9e1e23dd24af640fdaddea7be9a94 (diff)
downloadCMake-0b5301a778cb22b1179dd21d709494dfe74add41.zip
CMake-0b5301a778cb22b1179dd21d709494dfe74add41.tar.gz
CMake-0b5301a778cb22b1179dd21d709494dfe74add41.tar.bz2
FindXCTest: Fix output directory for test bundle with Xcode 12.5
The fix from commit eafe740ead (FindXCTest: Fix output directory for test bundle with new build system, 2021-02-09, v3.19.5~5^2) is not necessary with Xcode 12.5, which seems to have changed/fixed the behaviour again. Fixes: #22462
Diffstat (limited to 'Tests/RunCMake/XcodeProject/XCTestAddBundle.cmake')
-rw-r--r--Tests/RunCMake/XcodeProject/XCTestAddBundle.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tests/RunCMake/XcodeProject/XCTestAddBundle.cmake b/Tests/RunCMake/XcodeProject/XCTestAddBundle.cmake
index 444c730..9114fee 100644
--- a/Tests/RunCMake/XcodeProject/XCTestAddBundle.cmake
+++ b/Tests/RunCMake/XcodeProject/XCTestAddBundle.cmake
@@ -1,9 +1,14 @@
enable_language(Swift)
+
+set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED NO)
+set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "")
+set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
+
find_package(XCTest REQUIRED)
-add_executable(TestedApp MACOSX_BUNDLE EXCLUDE_FROM_ALL foo.swift)
+add_executable(TestedApp MACOSX_BUNDLE dummy_main.swift)
-xctest_add_bundle(TestingAppBundle TestedApp foo.swift)
+xctest_add_bundle(TestingAppBundle TestedApp dummy_main.swift)
get_target_property(_lib_output_dir TestingAppBundle LIBRARY_OUTPUT_DIRECTORY)