summaryrefslogtreecommitdiffstats
path: root/Tests/SwiftOnly/M.swift
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2020-02-04 05:32:51 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-12 15:50:43 (GMT)
commit2026915f8f08413a04e2612483eec28d844102d7 (patch)
tree3dfb7367e7e6c70fb15092472f3a9b7083c53806 /Tests/SwiftOnly/M.swift
parentcb8227ecbf8907c793d9e34a7aa77cbaa47c1bd8 (diff)
downloadCMake-2026915f8f08413a04e2612483eec28d844102d7.zip
CMake-2026915f8f08413a04e2612483eec28d844102d7.tar.gz
CMake-2026915f8f08413a04e2612483eec28d844102d7.tar.bz2
Swift: Propagate Swift_MODULE_DIRECTORY as include directory
Teach include directory computation for Swift to implicitly propagate the `Swift_MODULE_DIRECTORY` of all linked targets as include directories. This is required to ensure that the swiftmodule of a linked target is accessible to the compiler of the current target. Fixes: #19272
Diffstat (limited to 'Tests/SwiftOnly/M.swift')
-rw-r--r--Tests/SwiftOnly/M.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/SwiftOnly/M.swift b/Tests/SwiftOnly/M.swift
new file mode 100644
index 0000000..dd333fe
--- /dev/null
+++ b/Tests/SwiftOnly/M.swift
@@ -0,0 +1,2 @@
+import L
+public let SixtyFour: Int = ThirtyTwo * 2