Description: Add soversion in built libxgboost
Author: Mo Zhou <cdluminate@debian.org>
Last-Update: 2024-08-26
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: xgboost/CMakeLists.txt
===================================================================
--- xgboost.orig/CMakeLists.txt
+++ xgboost/CMakeLists.txt
@@ -357,6 +357,7 @@ if(BUILD_STATIC_LIB)
   add_library(xgboost STATIC)
 else()
   add_library(xgboost SHARED)
+  set_target_properties(xgboost PROPERTIES VERSION 3.0.0 SOVERSION 0)
 endif()
 target_link_libraries(xgboost PRIVATE objxgboost)
 target_include_directories(xgboost
