[shark] 03/24: Use public SHARK_[SO]VERSION variables in library target.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Dec 10 19:50:03 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository shark.

commit 3252eae5e717dae1b9119b7d22a5a9a4189fbc5b
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Mon Nov 30 18:15:07 2015 +0000

    Use public SHARK_[SO]VERSION variables in library target.
---
 CMakeLists.txt     | 1 +
 src/CMakeLists.txt | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2fd47d3..20b59a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,6 +58,7 @@ set(SHARK_VERSION_MAJOR 3)
 set(SHARK_VERSION_MINOR 0)
 set(SHARK_VERSION_PATCH 0)
 set(SHARK_VERSION ${SHARK_VERSION_MAJOR}.${SHARK_VERSION_MINOR}.${SHARK_VERSION_PATCH})
+set(SHARK_SOVERSION 0)
 
 
 #####################################################################
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a875fc1..6405ad0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -44,8 +44,8 @@ target_link_libraries(SharkVersion shark)
 
 # Install the library
 set_target_properties( shark PROPERTIES
-	VERSION ${SHARK_VERSION_MAJOR}.${SHARK_VERSION_MINOR}.${SHARK_VERSION_PATCH}
-	SOVERSION ${SHARK_VERSION_MAJOR}.${SHARK_VERSION_MINOR}.${SHARK_VERSION_PATCH})
+	VERSION ${SHARK_VERSION}
+	SOVERSION ${SHARK_SOVERSION})
 
 install(TARGETS shark
 	    EXPORT SharkTargets

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



More information about the debian-science-commits mailing list