summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-23 15:43:08 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-23 15:47:06 (GMT)
commit49d50ad40719722236c7867bd69e7ab414224c49 (patch)
tree8b92952a2de01ce221b9a383a6c3881da295927a /Source/cmGlobalXCodeGenerator.cxx
parent6757e6608992354300d635a96fed29800a4856c3 (diff)
downloadCMake-49d50ad40719722236c7867bd69e7ab414224c49.zip
CMake-49d50ad40719722236c7867bd69e7ab414224c49.tar.gz
CMake-49d50ad40719722236c7867bd69e7ab414224c49.tar.bz2
Xcode: Port rudimentary Swift support to Xcode 8
The `.pbxproj` file must now specify a `SWIFT_VERSION` value. Set it to the legacy value of "2.3" for now. Later this can be made configurable (e.g. to "3.0").
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 997f46c..42d97db 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2996,6 +2996,9 @@ bool cmGlobalXCodeGenerator::CreateXCodeObjects(
buildSettings->AddAttribute("GCC_VERSION",
this->CreateString(this->GeneratorToolset));
}
+ if (this->GetLanguageEnabled("Swift")) {
+ buildSettings->AddAttribute("SWIFT_VERSION", this->CreateString("2.3"));
+ }
std::string symroot = root->GetCurrentBinaryDirectory();
symroot += "/build";