Package: vecgeom / 1.2.8+dfsg-2

0001-soversion.patch Patch series | download
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
36
37
Description: fix sign compare
Author: Stephan Lachnit <stephanlachnit@debian.org>
Forwarded: https://gitlab.cern.ch/VecGeom/VecGeom/-/merge_requests/889

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -601,6 +601,14 @@
   ${PROJECT_BINARY_DIR}/VecGeom/base/Version.h
   ${VECGEOM_COMMON_SRCS}
   ${VECGEOM_CPPONLY_SRCS})
+
+if(BUILD_SHARED_LIBS)
+  set_target_properties(vecgeom
+    PROPERTIES
+      VERSION ${PROJECT_VERSION}
+      SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
+endif()
+
 target_compile_features(vecgeom PUBLIC cxx_std_${CMAKE_CXX_STANDARD})
 
 # Add compile options that vecgeom clients must compile their code using Vecgeom
--- a/persistency/gdml/source/CMakeLists.txt
+++ b/persistency/gdml/source/CMakeLists.txt
@@ -20,6 +20,13 @@
   src/Middleware.cpp
 )
 
+if(BUILD_SHARED_LIBS)
+  set_target_properties(vgdml
+    PROPERTIES
+      VERSION ${PROJECT_VERSION}
+      SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
+endif()
+
 target_include_directories(vgdml PUBLIC
   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
   $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>