diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index ed7aeb026f5d..5dda69629e14 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -66,7 +66,8 @@ set(LLVM_VERSION_PATCH 0) set(LLVM_VERSION_SUFFIX svn) if (NOT PACKAGE_VERSION) - set(PACKAGE_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}svn") + set(PACKAGE_VERSION + "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}") endif() option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF) diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 7f6364428cad..6c7ac0675987 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -338,7 +338,7 @@ function(llvm_add_library name) PREFIX "" ) endif() - + set_target_properties(${name} PROPERTIES SOVERSION ${LLVM_VERSION_MAJOR}