From: Cordell Bloor <cgmb@slerp.xyz>
Date: Mon, 17 Feb 2025 16:48:04 -0700
Subject: cmake soversion

Forwarded: no
---
 CMakeLists.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba180e2..53a3fdb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -521,6 +521,10 @@ else()
         roc::hipblas
         roc::hipsparse
         )
+      set_target_properties( magma
+        PROPERTIES
+          VERSION 2.9
+          SOVERSION 2)
     endif()
 
     if (USE_FORTRAN)
@@ -609,6 +613,10 @@ else()
     roc::hipblas
     roc::hipsparse
     )
+  set_target_properties( magma_sparse
+    PROPERTIES
+      VERSION 2.9
+      SOVERSION 2)
 endif()
 add_custom_target( sparse-lib DEPENDS magma_sparse )
 
