[cmake] Exposes LLVM version number in the runtimes. (#84641)
This allows sharing the LLVM version number in libc++.
This commit is contained in:
15
cmake/Modules/LLVMVersion.cmake
Normal file
15
cmake/Modules/LLVMVersion.cmake
Normal 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()
|
||||
|
||||
Reference in New Issue
Block a user