summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeSwiftCompiler.cmake.in
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-05-09 04:01:47 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-16 18:41:05 (GMT)
commite9b0063e8e0f2fcb5cc4239a06deec17c49688c4 (patch)
treef1eeefa3765c4908d7bae093b2d165106b6e64c8 /Modules/CMakeSwiftCompiler.cmake.in
parentb6412e3e38ba22bf816445f19394e7c8027c186f (diff)
downloadCMake-e9b0063e8e0f2fcb5cc4239a06deec17c49688c4.zip
CMake-e9b0063e8e0f2fcb5cc4239a06deec17c49688c4.tar.gz
CMake-e9b0063e8e0f2fcb5cc4239a06deec17c49688c4.tar.bz2
Modules: add build rules for Swift Ninja support
Add rules to support building Swift sources using Ninja.
Diffstat (limited to 'Modules/CMakeSwiftCompiler.cmake.in')
-rw-r--r--Modules/CMakeSwiftCompiler.cmake.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/CMakeSwiftCompiler.cmake.in b/Modules/CMakeSwiftCompiler.cmake.in
index 45f0a31..7c8d1c1 100644
--- a/Modules/CMakeSwiftCompiler.cmake.in
+++ b/Modules/CMakeSwiftCompiler.cmake.in
@@ -1,5 +1,14 @@
+# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
set(CMAKE_Swift_COMPILER "@CMAKE_Swift_COMPILER@")
set(CMAKE_Swift_COMPILER_ID "@CMAKE_Swift_COMPILER_ID@")
+set(CMAKE_Swift_COMPILER_VERSION "@CMAKE_Swift_COMPILER_VERSION@")
+
+set(CMAKE_Swift_COMPILER_LOADED 1)
+set(CMAKE_Swift_COMPILER_WORKS "@CMAKE_Swift_COMPILER_WORKS@")
+
+set(CMAKE_Swift_COMPILER_ENV_VAR "SWIFTC")
set(CMAKE_Swift_COMPILER_ID_RUN 1)
set(CMAKE_Swift_SOURCE_FILE_EXTENSIONS swift)