~wdconinc/ubuntu/xenial/geant4/master

« back to all changes in this revision

Viewing changes to debian/patches/use-versioned-sonames.diff

  • Committer: Wouter Deconinck
  • Date: 2017-06-26 20:34:12 UTC
  • Revision ID: wdconinc@gmail.com-20170626203412-qtema3bocqhrzv6k
Add patches through quilt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/cmake/Modules/Geant4MacroLibraryTargets.cmake
 
2
+++ b/cmake/Modules/Geant4MacroLibraryTargets.cmake
 
3
@@ -112,6 +112,10 @@
 
4
       target_link_libraries(${G4LIBTARGET_NAME}
 
5
         ${G4LIBTARGET_GEANT4_LINK_LIBRARIES}
 
6
         ${G4LIBTARGET_LINK_LIBRARIES})
 
7
+      # Add soversion
 
8
+      set(Geant4_SOVERSION ${Geant4_VERSION_MAJOR}.${Geant4_VERSION_MINOR})
 
9
+      set_target_properties(${G4LIBTARGET_NAME}
 
10
+        PROPERTIES VERSION "${Geant4_VERSION}" SOVERSION "${Geant4_SOVERSION}")
 
11
     endif()
 
12
 
 
13
     # This property is set to prevent concurrent builds of static and