summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorRoss Kilgariff <ross@ninjakiwi.com>2023-01-25 19:37:08 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-25 20:15:03 (GMT)
commit01c1d81527aec261445fa533d5f92ca473f77160 (patch)
tree7368616a49310767abfd634ee749a8e55239ad0d /Tests/RunCMake/CMakeLists.txt
parent950effe434623b50a1c85e2c53ed592210e79ceb (diff)
downloadCMake-01c1d81527aec261445fa533d5f92ca473f77160.zip
CMake-01c1d81527aec261445fa533d5f92ca473f77160.tar.gz
CMake-01c1d81527aec261445fa533d5f92ca473f77160.tar.bz2
Xcode: Inherit Swift flags and compilation conditions
Extend the change from commit dfaf55fbfd (Xcode: add extra '$(inherited)' entries using InheritBuildSettingAttribute, 2021-05-03, v3.21.0-rc1~182^2) to cover Swift flags and compilation conditions, allowing CocoaPods and CMake to interoperate when used in the same project.
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index d5c07dd..be6c5b1 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -636,7 +636,8 @@ if(CMAKE_GENERATOR MATCHES "^Visual Studio (1[6-9]|[2-9][0-9])")
endif()
if(XCODE_VERSION)
- add_RunCMake_test(XcodeProject -DXCODE_VERSION=${XCODE_VERSION})
+ add_RunCMake_test(XcodeProject -DXCODE_VERSION=${XCODE_VERSION}
+ -DCMake_TEST_Swift=${CMake_TEST_Swift})
add_RunCMake_test(XcodeProject-Embed -DXCODE_VERSION=${XCODE_VERSION})
# This test can take a very long time due to lots of combinations.