cmake: Store LLVM_VERSION_SUFFIX in LLVMConfig.cmake
authorMichal Gorny <mgorny@gentoo.org>
Wed, 8 Aug 2018 20:44:58 +0000 (20:44 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Wed, 8 Aug 2018 20:44:58 +0000 (20:44 +0000)
commit24cb754b70b1e917db54d35007168c57a0bdd08e
treef7a427a8ac81727ef39db55ceeb6511d7fa0cc6f
parent3c1a7bc290fb59c93decd1edd37b276e86909921
cmake: Store LLVM_VERSION_SUFFIX in LLVMConfig.cmake

Store LLVM_VERSION_SUFFIX along with other version components
in LLVMConfig.cmake. This fixes preserving the suffix set while building
LLVM to stand-alone builds of other components, e.g. clang,
and therefore improves uniformity between the two build models.

Given that there is no apparent reason to omit this part of version,
that it is distributed to subprojects when building as part of LLVM
and that it is included in LLVM_PACKAGE_VERSION, I think it was omitted
accidentally rather than done on purpose.

Differential Revision: https://reviews.llvm.org/D43701

llvm-svn: 339285
llvm/cmake/modules/LLVMConfig.cmake.in