[clang] Do not override libclang.so's SOVERSION if CLANG_FORCE_MATCHING_LIBCLANG_SOVE...
authorMichał Górny <mgorny@gentoo.org>
Tue, 11 Oct 2022 18:01:11 +0000 (20:01 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 12 Oct 2022 05:14:28 +0000 (07:14 +0200)
commitd3ce1339264dff3ea5571e9d5cf53d41e49a0879
tree32389a8179b034a38ac1ea13b3c901fe2ceeedb8
parentec1a419143bda5bc20660e3325fd7843543503fa
[clang] Do not override libclang.so's SOVERSION if CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

Instead of setting libclang.so's SOVERSION to CLANG_MAJOR_VERSION
when CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION is enabled, do not override
it and let LLVM set the correct SOVERSION.  This fixes libclang.so
missing LLVM_VERSION_SUFFIX, and harmonizes the SOVERSION with other
shared libraries.

Differential Revision: https://reviews.llvm.org/D135701
clang/tools/libclang/CMakeLists.txt