Skip to content

Commit 4e3fc39

Browse files
author
git apple-llvm automerger
committed
Merge commit '3a8282376b6c' from llvm.org/release/11.x into apple/stable/20200714
2 parents a269d33 + 3a82823 commit 4e3fc39

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

clang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ set(CLANG_EXECUTABLE_VERSION
508508
"${CLANG_VERSION_MAJOR}" CACHE STRING
509509
"Major version number that will be appended to the clang executable name")
510510
set(LIBCLANG_LIBRARY_VERSION
511-
"${CLANG_VERSION_MAJOR}" CACHE STRING
511+
"${CLANG_VERSION_MAJOR}.${CLANG_VERSION_MINOR}" CACHE STRING
512512
"Major version number that will be appended to the libclang library")
513513
mark_as_advanced(CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION)
514514

clang/tools/clang-shlib/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ add_clang_library(clang-cpp
4848
${_OBJECTS}
4949
LINK_LIBS
5050
${_DEPS})
51+
52+
set_target_properties(clang-cpp
53+
PROPERTIES
54+
VERSION ${LIBCLANG_LIBRARY_VERSION}
55+
SOVERSION ${LIBCLANG_LIBRARY_VERSION})

clang/tools/libclang/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ if(ENABLE_SHARED)
159159
else()
160160
set_target_properties(libclang
161161
PROPERTIES
162+
SOVERSION ${LIBCLANG_LIBRARY_VERSION}
162163
VERSION ${LIBCLANG_LIBRARY_VERSION}
163164
DEFINE_SYMBOL _CINDEX_LIB_)
164165
# FIXME: _CINDEX_LIB_ affects dllexport/dllimport on Win32.

0 commit comments

Comments
 (0)