From 7591b9695ccf6d6aea1b3e84e0a17de3c448bca3 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Fri, 15 Sep 2023 06:04:52 -0400 Subject: [PATCH] Set the shared object version (SOVERSION) to only version major.minor This declares that the library ABI is intended to be backward compatible to older versions of the same major.minor version. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27c723a2c..d4d29eb1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -272,7 +272,7 @@ add_library(datachannel SHARED ${LIBDATACHANNEL_IMPL_HEADERS}) set_target_properties(datachannel PROPERTIES VERSION ${PROJECT_VERSION} - SOVERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} CXX_STANDARD 17 CXX_VISIBILITY_PRESET default) target_compile_definitions(datachannel PRIVATE RTC_EXPORTS)