Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > ad94aa674b2e9b6ac6af7018953752fb > files > 4

restbed-4.0-3.mga6.src.rpm

Description: Set SOVERSION
Forwarded: https://github.com/Corvusoft/restbed/pull/137
Author: Alexandre Viau <aviau@debian.org>
Last-Update: 2016-09-06

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,12 @@
 # Copyright 2013-2016, Corvusoft Ltd, All Rights Reserved.
+cmake_minimum_required( VERSION 2.8.10 )
 
 project( "restbed" )
-
-cmake_minimum_required( VERSION 2.8.10 )
+set (restbed_VERSION_MAJOR 0)
+set (restbed_VERSION_MINOR 0.0)
+set (restbed_VERSION ${restbed_VERSION_MAJOR}.${restbed_VERSION_MINOR})
+set (PACKAGE_VERSION ${restbed_VERSION})
+set (VERSION "${restbed_VERSION}")
 
 #
 # Build Options
@@ -40,6 +44,7 @@
 include_directories( ${INCLUDE_DIR} )
 
 add_library( ${PROJECT_NAME} ${BUILD_MANIFEST} )
+set_target_properties (${PROJECT_NAME} PROPERTIES SOVERSION ${restbed_VERSION_MAJOR} VERSION ${restbed_VERSION})
 
 if ( BUILD_SSL )
     target_link_libraries( ${PROJECT_NAME} LINK_PRIVATE ${ssl_LIBRARY} ${crypto_LIBRARY} )