Commit ca52bfef authored by Sergey Avseyev's avatar Sergey Avseyev Committed by Wouter van Oortmerssen

Specify ABI version for shared library (#4479)

parent 2edb1dcd
...@@ -189,7 +189,16 @@ endif() ...@@ -189,7 +189,16 @@ endif()
if(FLATBUFFERS_BUILD_SHAREDLIB) if(FLATBUFFERS_BUILD_SHAREDLIB)
add_library(flatbuffers_shared SHARED ${FlatBuffers_Library_SRCS}) add_library(flatbuffers_shared SHARED ${FlatBuffers_Library_SRCS})
set_target_properties(flatbuffers_shared PROPERTIES OUTPUT_NAME flatbuffers)
# Shared object version: "major.minor.micro"
# - micro updated every release when there is no API/ABI changes
# - minor updated when there are additions in API/ABI
# - major (ABI number) updated when there are changes in ABI (or removals)
set(FlatBuffers_Library_SONAME_MAJOR "1")
set(FlatBuffers_Library_SONAME_FULL "${FlatBuffers_Library_SONAME_MAJOR}.0.0")
set_target_properties(flatbuffers_shared PROPERTIES OUTPUT_NAME flatbuffers
SOVERSION "${FlatBuffers_Library_SONAME_MAJOR}"
VERSION "${FlatBuffers_Library_SONAME_FULL}")
endif() endif()
function(compile_flatbuffers_schema_to_cpp SRC_FBS) function(compile_flatbuffers_schema_to_cpp SRC_FBS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment