File: cmake-soversion

package info (click to toggle)
cpuinfo 0.0~git20220617.082deff-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,056 kB
  • sloc: cpp: 277,526; ansic: 17,400; python: 598; sh: 400; makefile: 18
file content (13 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
set upstream ABI version as 0
Author: Mo Zhou
Forward: no need
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -195,6 +195,7 @@
   ADD_LIBRARY(cpuinfo ${CPUINFO_SRCS})
 ELSEIF(CPUINFO_LIBRARY_TYPE STREQUAL "shared")
   ADD_LIBRARY(cpuinfo SHARED ${CPUINFO_SRCS})
+  set_target_properties(cpuinfo PROPERTIES SOVERSION 0)
 ELSEIF(CPUINFO_LIBRARY_TYPE STREQUAL "static")
   ADD_LIBRARY(cpuinfo STATIC ${CPUINFO_SRCS})
 ELSE()