mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Xcode: Propagate system include directories to Swift compiler
Previously, only non-system include directories would be propagated to Swift. This meant that if, for example, an IMPORTED target contained a Swift module, that module would not be found by a Swift consumer. Fixes: #28097
This commit is contained in:
@@ -3090,6 +3090,10 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
|
||||
if (!sysdirs.IsEmpty()) {
|
||||
buildSettings->AddAttribute("SYSTEM_HEADER_SEARCH_PATHS",
|
||||
sysdirs.CreateList());
|
||||
if (languages.count("Swift")) {
|
||||
buildSettings->AddAttribute("SWIFT_SYSTEM_INCLUDE_PATHS",
|
||||
sysdirs.CreateList());
|
||||
}
|
||||
}
|
||||
|
||||
if (this->XcodeVersion >= 60 && !emitSystemIncludes) {
|
||||
|
||||
Reference in New Issue
Block a user