mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a helper to allow us to programatically extract the Swift version string during the build. This is particularly useful for injection into the packaging stages. Co-authored-by: Evan Wilde <etceterawilde@gmail.com>
8 lines
344 B
CMake
8 lines
344 B
CMake
# SWIFT_VERSION is deliberately /not/ cached so that an existing build directory
|
|
# can be reused when a new version of Swift comes out (assuming the user hasn't
|
|
# manually set it as part of their own CMake configuration).
|
|
set(SWIFT_VERSION_MAJOR 5)
|
|
set(SWIFT_VERSION_MINOR 9)
|
|
set(SWIFT_VERSION "${SWIFT_VERSION_MAJOR}.${SWIFT_VERSION_MINOR}")
|
|
|