[libjuice] Set SOVERSION on shared library target (#53177)

Co-authored-by: Martijn Otto <martijn@resolume.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
omartijn 2026-08-08 08:21:00 +02:00 committed by GitHub
parent 52896b593e
commit ef2ffdc545
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 22 additions and 2 deletions

View File

@ -6,6 +6,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
dependencies.diff
soversion.diff
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b020a9..1f1dd5c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,7 +97,7 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
add_library(juice ${LIBJUICE_SOURCES})
-set_target_properties(juice PROPERTIES VERSION ${PROJECT_VERSION})
+set_target_properties(juice PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
target_include_directories(juice PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)

View File

@ -1,9 +1,10 @@
{
"name": "libjuice",
"version": "1.7.2",
"port-version": 1,
"description": "The library is a simplified implementation of the Interactive Connectivity Establishment (ICE) protocol in C for POSIX platforms (including Linux and Apple macOS) and Microsoft Windows.",
"homepage": "https://github.com/paullouisageneau/libjuice",
"license": "LGPL-2.1-only",
"license": "MPL-2.0",
"dependencies": [
{
"name": "vcpkg-cmake",

View File

@ -5238,7 +5238,7 @@
},
"libjuice": {
"baseline": "1.7.2",
"port-version": 0
"port-version": 1
},
"libjxl": {
"baseline": "0.11.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "59feec3870fce9408e58b9f5a5c51bbb95b00a22",
"version": "1.7.2",
"port-version": 1
},
{
"git-tree": "82db1377df8a430ee955ff2994c29bd342da2f1b",
"version": "1.7.2",