From c10c9f839aca3f630212869ac6738963c0e3e77e Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 28 Oct 2019 11:52:31 -0400 Subject: Swift: Honor CMAKE_OSX_SYSROOT on Apple platforms Pass the value to the Swift compiler driver via `-sdk`. We already do this for C/C++ via `-isysroot`. This fixes command-line builds on macOS 10.15 with Xcode 11 Swift tools. Fixes: #19880 --- Modules/Platform/Apple-Apple-Swift.cmake | 1 + 1 file changed, 1 insertion(+) create mode 100644 Modules/Platform/Apple-Apple-Swift.cmake diff --git a/Modules/Platform/Apple-Apple-Swift.cmake b/Modules/Platform/Apple-Apple-Swift.cmake new file mode 100644 index 0000000..7ca3e36 --- /dev/null +++ b/Modules/Platform/Apple-Apple-Swift.cmake @@ -0,0 +1 @@ +set(CMAKE_Swift_SYSROOT_FLAG "-sdk") -- cgit v0.12