From 2124dbef79f97e785a3cc75acf636e20e0845661 Mon Sep 17 00:00:00 2001 From: Scott Ware Date: Thu, 8 Nov 2018 12:34:23 +0000 Subject: [PATCH] Fix packaging issues Signed-off-by: Scott Ware --- 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