Index: tools/llvm-shlib/CMakeLists.txt =================================================================== --- tools/llvm-shlib/CMakeLists.txt +++ tools/llvm-shlib/CMakeLists.txt @@ -87,6 +87,10 @@ add_dependencies(LLVM ${LLVM_EXPORTED_SYMBOL_FILE}) +set_target_properties(LLVM PROPERTIES + SOVERSION ${LLVM_VERSION_MAJOR} + VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}) + if (APPLE) set_property(TARGET LLVM APPEND_STRING PROPERTY LINK_FLAGS