File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ set(CLANG_EXECUTABLE_VERSION
508
508
"${CLANG_VERSION_MAJOR} " CACHE STRING
509
509
"Major version number that will be appended to the clang executable name" )
510
510
set (LIBCLANG_LIBRARY_VERSION
511
- "${CLANG_VERSION_MAJOR} " CACHE STRING
511
+ "${CLANG_VERSION_MAJOR} . ${CLANG_VERSION_MINOR} " CACHE STRING
512
512
"Major version number that will be appended to the libclang library" )
513
513
mark_as_advanced (CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION )
514
514
Original file line number Diff line number Diff line change @@ -48,3 +48,8 @@ add_clang_library(clang-cpp
48
48
${_OBJECTS}
49
49
LINK_LIBS
50
50
${_DEPS} )
51
+
52
+ set_target_properties (clang-cpp
53
+ PROPERTIES
54
+ VERSION ${LIBCLANG_LIBRARY_VERSION}
55
+ SOVERSION ${LIBCLANG_LIBRARY_VERSION} )
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ if(ENABLE_SHARED)
159
159
else ()
160
160
set_target_properties (libclang
161
161
PROPERTIES
162
+ SOVERSION ${LIBCLANG_LIBRARY_VERSION}
162
163
VERSION ${LIBCLANG_LIBRARY_VERSION}
163
164
DEFINE_SYMBOL _CINDEX_LIB_ )
164
165
# FIXME: _CINDEX_LIB_ affects dllexport/dllimport on Win32.
You can’t perform that action at this time.
0 commit comments