diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt --- a/clang/tools/libclang/CMakeLists.txt +++ b/clang/tools/libclang/CMakeLists.txt @@ -48,6 +48,8 @@ clangTooling ) +SET(CLANG_SONAME 13) + if (CLANG_ENABLE_ARCMT) list(APPEND LIBS clangARCMigrate) endif () @@ -176,7 +178,7 @@ # LLVM_VERSION_MAJOR. set_target_properties(libclang PROPERTIES VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX} - SOVERSION 13) + SOVERSION ${CLANG_SONAME}) endif() endif()