Files
CMake/Modules/Platform/Apple-Apple-Swift.cmake
Brad King c10c9f839a 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
2019-10-28 11:52:31 -04:00

2 lines
37 B
CMake

set(CMAKE_Swift_SYSROOT_FLAG "-sdk")