diff options
author | Evan Wilde <etceterawilde@gmail.com> | 2022-09-19 18:34:21 (GMT) |
---|---|---|
committer | Evan Wilde <etceterawilde@gmail.com> | 2022-09-19 18:37:48 (GMT) |
commit | 399343486f129f28b61683dbd95bec4ff16e60a0 (patch) | |
tree | 65c24803ae4ab03362cb762aa885d576ad464e2d /Tests/CheckSwift.cmake | |
parent | a9509cec7ec5d672194f51071b9e9e54ebd9ccda (diff) | |
download | CMake-399343486f129f28b61683dbd95bec4ff16e60a0.zip CMake-399343486f129f28b61683dbd95bec4ff16e60a0.tar.gz CMake-399343486f129f28b61683dbd95bec4ff16e60a0.tar.bz2 |
Tests: Add swift compiler version to test check
Include the swift compiler version in the set of exported variables from
CheckSwift.cmake for Swift related tests.
Diffstat (limited to 'Tests/CheckSwift.cmake')
-rw-r--r-- | Tests/CheckSwift.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CheckSwift.cmake b/Tests/CheckSwift.cmake index fcbae7e..099c298 100644 --- a/Tests/CheckSwift.cmake +++ b/Tests/CheckSwift.cmake @@ -14,6 +14,7 @@ if(NOT DEFINED CMAKE_Swift_COMPILER) project(CheckSwift Swift) file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\" \"set(CMAKE_Swift_COMPILER \\\"\${CMAKE_Swift_COMPILER}\\\")\\n\" + \"set(CMAKE_Swift_COMPILER_VERSION \\\"\${CMAKE_Swift_COMPILER_VERSION}\\\")\\n\" \"set(CMAKE_Swift_FLAGS \\\"\${CMAKE_Swift_FLAGS}\\\")\\n\") ") @@ -54,6 +55,7 @@ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\" message(STATUS "${_desc} - ${CMAKE_Swift_COMPILER}") set(CMAKE_Swift_COMPILER "${CMAKE_Swift_COMPILER}" CACHE FILEPATH "Swift compiler") + set(CMAKE_Swift_COMPILER_VERSION "${CMAKE_Swift_COMPILER_VERSION}" CACHE FILEPATH "Swift compiler version") set(CMAKE_Swift_FLAGS "${CMAKE_Swift_FLAGS}" CACHE STRING "Swift flags") mark_as_advanced(CMAKE_Swift_COMPILER) |