[ismrmrd] 53/177: cmake: add minor version number to soversion to produce the right symlink

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:02:01 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag v1.1.0.beta.1
in repository ismrmrd.

commit a0e2e6766134d4fb1dada1db4f860aa927f76e15
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Sep 16 08:04:02 2014 +0100

    cmake: add minor version number to soversion to produce the right symlink
---
 CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb7714e..0f7b5fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,6 +96,7 @@ if (NOT (${ISMRMRD_XML_SCHEMA_SHA1} STREQUAL ${ISMRMRD_CURRENT_XML_SCHEMA_SHA1})
 endif()
 
 set(ISMRMRD_VERSION_STRING ${ISMRMRD_VERSION_MAJOR}.${ISMRMRD_VERSION_MINOR}.${ISMRMRD_VERSION_PATCH})
+set(ISMRMRD_SOVERSION ${ISMRMRD_VERSION_MAJOR}.${ISMRMRD_VERSION_MINOR})
 #  ---   VERSIONING  (end) ----
  
 #  ---   Main Library  (begin) ----
@@ -119,7 +120,10 @@ add_library(ismrmrd SHARED
   ${ISMRMRD_XML_SOURCE_DIR}/ismrmrd_meta.cpp
   ${ISMRMRD_XML_SOURCE_DIR}/pugixml.cpp
 )
-set_target_properties(ismrmrd PROPERTIES VERSION ${ISMRMRD_VERSION_STRING} SOVERSION ${ISMRMRD_VERSION_MAJOR})
+set_target_properties(ismrmrd PROPERTIES
+  VERSION ${ISMRMRD_VERSION_STRING}
+  SOVERSION ${ISMRMRD_SOVERSION}
+)
 target_link_libraries(ismrmrd ${HDF5_LIBRARIES})
 
 # install the main library

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git



More information about the debian-science-commits mailing list