summaryrefslogtreecommitdiffstats
path: root/Tests/SwiftOnly
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-04 17:05:08 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-04 18:26:10 (GMT)
commit96dece6dc11627d0e7b5588f63f2578b581cfb77 (patch)
tree8f7b85886b79e37a7f15c2e9e1406898080f36ea /Tests/SwiftOnly
parent6e91f5d6204e650c808b6585074faa248ee6e6a9 (diff)
downloadCMake-96dece6dc11627d0e7b5588f63f2578b581cfb77.zip
CMake-96dece6dc11627d0e7b5588f63f2578b581cfb77.tar.gz
CMake-96dece6dc11627d0e7b5588f63f2578b581cfb77.tar.bz2
Xcode: Update default Swift language version for Xcode 10.2
Xcode 10.2 no longer supports Swift language versions before 4.0. Fixes: #18871
Diffstat (limited to 'Tests/SwiftOnly')
-rw-r--r--Tests/SwiftOnly/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/SwiftOnly/CMakeLists.txt b/Tests/SwiftOnly/CMakeLists.txt
index cf4463c..e5f8588 100644
--- a/Tests/SwiftOnly/CMakeLists.txt
+++ b/Tests/SwiftOnly/CMakeLists.txt
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.3)
project(SwiftOnly Swift)
-if(NOT XCODE_VERSION VERSION_LESS 8.0)
+if(NOT XCODE_VERSION VERSION_LESS 10.2)
+ set(CMAKE_Swift_LANGUAGE_VERSION 5.0)
+elseif(NOT XCODE_VERSION VERSION_LESS 8.0)
set(CMAKE_Swift_LANGUAGE_VERSION 3.0)
endif()