summaryrefslogtreecommitdiffstats
path: root/Tests/SwiftOnly/SubB
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-02 20:58:21 (GMT)
committerBrad King <brad.king@kitware.com>2022-11-02 21:03:21 (GMT)
commitcb4e6702b26ce8fbe8b295b31c96841f2b32748a (patch)
treef64b69466008a5ebd4beeff87a939ae409f45acb /Tests/SwiftOnly/SubB
parente1ccab12d7530d4a1004f488cbb5c985f2d27215 (diff)
downloadCMake-cb4e6702b26ce8fbe8b295b31c96841f2b32748a.zip
CMake-cb4e6702b26ce8fbe8b295b31c96841f2b32748a.tar.gz
CMake-cb4e6702b26ce8fbe8b295b31c96841f2b32748a.tar.bz2
Xcode: Implement Swift include directories
Populate Xcode's `SWIFT_INCLUDE_PATHS` build setting with the target-wide include directories. Issue: #24116
Diffstat (limited to 'Tests/SwiftOnly/SubB')
-rw-r--r--Tests/SwiftOnly/SubB/CMakeLists.txt2
-rw-r--r--Tests/SwiftOnly/SubB/SubB.swift1
2 files changed, 3 insertions, 0 deletions
diff --git a/Tests/SwiftOnly/SubB/CMakeLists.txt b/Tests/SwiftOnly/SubB/CMakeLists.txt
new file mode 100644
index 0000000..6e92927
--- /dev/null
+++ b/Tests/SwiftOnly/SubB/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_library(SubB SubB.swift)
+target_link_libraries(SubB PRIVATE SubA)
diff --git a/Tests/SwiftOnly/SubB/SubB.swift b/Tests/SwiftOnly/SubB/SubB.swift
new file mode 100644
index 0000000..d593c4c
--- /dev/null
+++ b/Tests/SwiftOnly/SubB/SubB.swift
@@ -0,0 +1 @@
+import SubA