CMake: expose Swift version through CMakeConfig.cmake (#67152)

Rationale: we are using Swift compiler as a library in a downstream project and having these exposed would streamline version detection for our use case.
Additionally, this PR makes CMake config a bit more uniform with LLVM/Clang configs.
This commit is contained in:
AlexDenisov
2023-07-22 22:12:15 +02:00
committed by GitHub
parent 67e5f1ef38
commit a5f2f76716

View File

@@ -2,6 +2,10 @@
@SWIFT_CONFIG_CODE@
set(SWIFT_VERSION_MAJOR @SWIFT_VERSION_MAJOR@)
set(SWIFT_VERSION_MINOR @SWIFT_VERSION_MINOR@)
set(SWIFT_VERSION_PATCH @SWIFT_VERSION_PATCHLEVEL@)
set(SWIFT_VERSION @SWIFT_VERSION@)
set(SWIFT_MAIN_SRC_DIR @SWIFT_SOURCE_DIR@)