blob: 415987d08cc93c826f784fe8e66e9e3fdb613d37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
From 2124dbef79f97e785a3cc75acf636e20e0845661 Mon Sep 17 00:00:00 2001
From: Scott Ware <scott.r.ware@intel.com>
Date: Thu, 8 Nov 2018 12:34:23 +0000
Subject: [PATCH] Fix packaging issues
Signed-off-by: Scott Ware <scott.r.ware@intel.com>
---
CMakeLists.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 96a2692..46ba016 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,9 @@ project(uamqp)
FILE(READ ${CMAKE_CURRENT_LIST_DIR}/version.txt UAMQP_VERSION)
+set(GENERIC_LIB_VERSION ${UAMQP_VERSION})
+string(SUBSTRING ${UAMQP_VERSION} 0 1 GENERIC_LIB_SOVERSION)
+
option(run_e2e_tests "set run_e2e_tests to ON to run e2e tests (default is OFF) [if possible, they are always built]" OFF)
option(run_unittests "set run_unittests to ON to run unittests (default is OFF)" OFF)
option(skip_samples "set skip_samples to ON to skip building samples (default is OFF)[if possible, they are always built]" OFF)
@@ -247,6 +250,14 @@ setTargetBuildProperties(uamqp)
target_link_libraries(uamqp aziotsharedutil)
+if (NOT WIN32)
+ set_target_properties(uamqp
+ PROPERTIES
+ VERSION ${GENERIC_LIB_VERSION}
+ SOVERSION ${GENERIC_LIB_SOVERSION}
+ )
+endif()
+
if (NOT ${skip_samples})
add_subdirectory(samples)
endif()
--
2.7.4
|