e9d72c5
From 96683a250492efcc7059c8c234859ce4a89910b7 Mon Sep 17 00:00:00 2001
e9d72c5
From: Nicolas Chauvet <kwizart@gmail.com>
e9d72c5
Date: Wed, 18 Jul 2018 11:16:29 +0200
e9d72c5
Subject: [PATCH 2/2] Set the appropriate SONAME for the library
e9d72c5
e9d72c5
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
e9d72c5
---
e9d72c5
 CMakeLists.txt | 6 ++++++
e9d72c5
 1 file changed, 6 insertions(+)
e9d72c5
e9d72c5
diff --git a/CMakeLists.txt b/CMakeLists.txt
e9d72c5
index f5fa059..02f1631 100644
e9d72c5
--- a/CMakeLists.txt
e9d72c5
+++ b/CMakeLists.txt
e9d72c5
@@ -88,6 +88,12 @@ GENERATE_EXPORT_HEADER( AcesContainer
e9d72c5
              STATIC_DEFINE AcesContainer_BUILT_AS_STATIC
e9d72c5
 )
e9d72c5
 
e9d72c5
+# Set the build version (VERSION) and the API version (SOVERSION)
e9d72c5
+set_target_properties(AcesContainer
e9d72c5
+	PROPERTIES
e9d72c5
+	VERSION ${AcesContainer_VERSION}
e9d72c5
+	SOVERSION ${AcesContainer_MAJOR_VERSION})
e9d72c5
+
e9d72c5
 install (TARGETS AcesContainer EXPORT AcesContainerTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
e9d72c5
 install (FILES 
e9d72c5
 			aces_errors.h
e9d72c5
-- 
e9d72c5
2.17.1
e9d72c5