summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeSwiftCompiler.cmake.in
diff options
context:
space:
mode:
authorYauheni Khnykin <yauheni.khnykin@here.com>2020-02-04 19:47:30 (GMT)
committerBrad King <brad.king@kitware.com>2020-02-10 15:32:37 (GMT)
commit5c2a92f44f4c653b9567f03f99385ab190c5fd88 (patch)
tree66f2a02903f2a16c34bc3ca32de405de5b2c501b /Modules/CMakeSwiftCompiler.cmake.in
parent155540d89eb5ac00fd8ba03a9580de2382af6386 (diff)
downloadCMake-5c2a92f44f4c653b9567f03f99385ab190c5fd88.zip
CMake-5c2a92f44f4c653b9567f03f99385ab190c5fd88.tar.gz
CMake-5c2a92f44f4c653b9567f03f99385ab190c5fd88.tar.bz2
Swift: Exclude SDK include paths
Populate `CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES` with the macOS SDK's include directory so that we filter such implicit directories out of Swift targets. Fixes: #19845
Diffstat (limited to 'Modules/CMakeSwiftCompiler.cmake.in')
-rw-r--r--Modules/CMakeSwiftCompiler.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeSwiftCompiler.cmake.in b/Modules/CMakeSwiftCompiler.cmake.in
index 7c8d1c1..47ada38 100644
--- a/Modules/CMakeSwiftCompiler.cmake.in
+++ b/Modules/CMakeSwiftCompiler.cmake.in
@@ -12,3 +12,5 @@ set(CMAKE_Swift_COMPILER_ENV_VAR "SWIFTC")
set(CMAKE_Swift_COMPILER_ID_RUN 1)
set(CMAKE_Swift_SOURCE_FILE_EXTENSIONS swift)
+
+set(CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES@")