[lld,CMake] Include Version.inc when LLVM_DISTRIBUTION_COMPONENTS contains lld-headers (#127946)

Without this inc file `getLLDVersion` cannot be called; see
https://github.com/llvm/llvm-project/blob/main/lld/include/lld/Common/Version.h#L16.

Fixes incomplete solution introduced by
https://github.com/llvm/llvm-project/pull/127123.
This commit is contained in:
Maksim Levental 2025-02-21 11:06:33 -06:00 committed by GitHub
parent ab166d4d10
commit a66376b0dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -207,6 +207,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
COMPONENT lld-headers
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.inc"
)
if (NOT LLVM_ENABLE_IDE)