File 0001-Use-a-proper-so-version.patch of Package libyuv

From c6ff05c9b706ee092f92a9e03edb34a98b8c526e Mon Sep 17 00:00:00 2001
From: JS <obs.coke518@passinbox.com>
Date: Sun, 29 Dec 2024 18:35:44 +0800
Subject: [PATCH] Use a proper so-version

---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1b81f43..d332b36 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -184,6 +184,9 @@ if(WIN32)
   set_target_properties( ${ly_lib_shared} PROPERTIES IMPORT_PREFIX "lib" )
 endif()
 
+INCLUDE	( CM_linux_packages.cmake )
+SET_TARGET_PROPERTIES	( ${ly_lib_shared} PROPERTIES VERSION ${YUV_VERSION} SOVERSION ${YUV_VER_MAJOR} )
+
 # this creates the cpuid tool
 add_executable      ( cpuid ${ly_base_dir}/util/cpuid.c )
 target_link_libraries  ( cpuid ${ly_lib_static} )
-- 
2.47.1

openSUSE Build Service is sponsored by