summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_Swift_LANGUAGE_VERSION.rst
blob: fce6fa726c206d598165e1c498b545886c01eca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
CMAKE_Swift_LANGUAGE_VERSION
----------------------------

.. versionadded:: 3.7

Set to the Swift language version number.  If not set, the oldest legacy
version known to be available in the host Xcode version is assumed:

* Swift ``4.0`` for Xcode 10.2 and above.
* Swift ``3.0`` for Xcode 8.3 and above.
* Swift ``2.3`` for Xcode 8.2 and below.