summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-26 13:06:29 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-09-26 13:06:29 (GMT)
commitc6f07d06c610a9b1e6062d70ffc78c04bdf48ee4 (patch)
tree15a6961de923535d8695806223cec28cf8078388 /Tests
parentd57a6493fc667f8a6ffa9fad2566a0cbea785ec5 (diff)
parentb35568f3f9f9b8f4b5b2a2e6f4d524540980c3ae (diff)
downloadCMake-c6f07d06c610a9b1e6062d70ffc78c04bdf48ee4.zip
CMake-c6f07d06c610a9b1e6062d70ffc78c04bdf48ee4.tar.gz
CMake-c6f07d06c610a9b1e6062d70ffc78c04bdf48ee4.tar.bz2
Merge topic 'xcode-swift-version'
b35568f3 Xcode: Add option to set Swift language version 49d50ad4 Xcode: Port rudimentary Swift support to Xcode 8
Diffstat (limited to 'Tests')
-rw-r--r--Tests/SwiftOnly/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/SwiftOnly/CMakeLists.txt b/Tests/SwiftOnly/CMakeLists.txt
index 5cb9739..cf4463c 100644
--- a/Tests/SwiftOnly/CMakeLists.txt
+++ b/Tests/SwiftOnly/CMakeLists.txt
@@ -1,4 +1,8 @@
cmake_minimum_required(VERSION 3.3)
project(SwiftOnly Swift)
+if(NOT XCODE_VERSION VERSION_LESS 8.0)
+ set(CMAKE_Swift_LANGUAGE_VERSION 3.0)
+endif()
+
add_executable(SwiftOnly main.swift)