[cmake] Exposes LLVM version number in the runtimes. (#84641)

This allows sharing the LLVM version number in libc++.
This commit is contained in:
Mark de Wever
2024-03-11 17:43:14 +01:00
committed by GitHub
parent 6cd68c2f87
commit 81e20472a0
3 changed files with 18 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
# The LLVM Version number information
if(NOT DEFINED LLVM_VERSION_MAJOR)
set(LLVM_VERSION_MAJOR 19)
endif()
if(NOT DEFINED LLVM_VERSION_MINOR)
set(LLVM_VERSION_MINOR 0)
endif()
if(NOT DEFINED LLVM_VERSION_PATCH)
set(LLVM_VERSION_PATCH 0)
endif()
if(NOT DEFINED LLVM_VERSION_SUFFIX)
set(LLVM_VERSION_SUFFIX git)
endif()