[CMake] Deduplicate Halide_LLVM_VERSION and LLVM_PACKAGE_VERSION#6646
Conversation
As far as i can tell, they are always exactly identical, and i don't believe the claim that `LLVM_PACKAGE_VERSION` doesn't exist in upper scopes is valid.
|
Do all versions set it as a cache variable? Even if they do, is that a guarantee going forward? Generally, modern CMake packages are moving towards not caching such things so that sibling folders can load different versions. Seems like the kind of thing we'd just need to add back later. Also, is this every use of |
I don't follow at all, but you already rely on
I mean, can you point me at the other uses? |
|
Ah, I was thinking of |
As far as i can tell, they are always exactly identical,
and i don't believe the claim that
LLVM_PACKAGE_VERSIONdoesn't exist in upper scopes is valid.