summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-08-12 01:36:06 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-26 15:38:40 (GMT)
commit369c48ee437263a9702c8725f6e73bc4b9d0fe16 (patch)
tree94b7e3194e2d3448d328f197a1d5c61d6a8e6a07 /Help/prop_tgt
parent19612dffd27d90d73e3b7cff9cbba241294c17e9 (diff)
downloadCMake-369c48ee437263a9702c8725f6e73bc4b9d0fe16.zip
CMake-369c48ee437263a9702c8725f6e73bc4b9d0fe16.tar.gz
CMake-369c48ee437263a9702c8725f6e73bc4b9d0fe16.tar.bz2
Swift: honour `-swift-version` in Ninja generator
Swift has supported `CMAKE_Swift_LANGUAGE_VERSION` and `Swift_LANGUAGE_VERSION` but didn't apply that to Ninja generated targets. Consider the property when calculating the flags.
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/Swift_LANGUAGE_VERSION.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/prop_tgt/Swift_LANGUAGE_VERSION.rst b/Help/prop_tgt/Swift_LANGUAGE_VERSION.rst
new file mode 100644
index 0000000..7579447
--- /dev/null
+++ b/Help/prop_tgt/Swift_LANGUAGE_VERSION.rst
@@ -0,0 +1,6 @@
+Swift_LANGUAGE_VERSION
+----------------------
+
+This property sets the language version for the Swift sources in the target. If
+one is not specified, it will default to ``<CMAKE_Swift_LANGUAGE_VERSION>`` if
+specified, otherwise it is the latest version supported by the compiler.