[llvm] Export `LLVM_VERSION_*` CMake variables to `PARENT_SCOPE` (PR #83346)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 19:21:39 PST 2024


================
@@ -28,6 +28,15 @@ if(NOT DEFINED LLVM_VERSION_SUFFIX)
   set(LLVM_VERSION_SUFFIX git)
 endif()
 
+# Export a few LLVM version identifiers for users who use LLVM as a subdir.
----------------
joker-eph wrote:

This seems a bit ad-hoc compared to every else that could be exported?

You mention parity with FindPackage(LLVM) in CMake: what else does  FindPackage exports?

https://github.com/llvm/llvm-project/pull/83346


More information about the llvm-commits mailing list