mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00

On Swift versions later than 5.2, the compiler is able to specify target info, including the module triple among other properties about the underlying platform. Grab the triple and save it in the compiler info.
21 lines
777 B
CMake
21 lines
777 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
# file LICENSE.rst 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)
|
|
|
|
set(CMAKE_Swift_COMPILER_USE_OLD_DRIVER "@CMAKE_Swift_COMPILER_USE_OLD_DRIVER@")
|
|
|
|
set(CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES@")
|
|
|
|
set(CMAKE_Swift_MODULE_TRIPLE "@CMAKE_Swift_MODULE_TRIPLE@")
|