File: cmake-soversion.patch

package info (click to toggle)
magma 2.9.0%2Bds-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 83,212 kB
  • sloc: cpp: 709,115; fortran: 121,916; ansic: 32,343; python: 25,603; f90: 15,208; makefile: 942; xml: 253; csh: 232; sh: 203; perl: 104
file content (35 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 )