From 37d716973d75fe4c297870fd2e8cb0186f2c0272 Mon Sep 17 00:00:00 2001 From: Alexey Shabalin Date: Fri, 19 Mar 2021 17:42:23 +0300 Subject: [PATCH] Add SOVERSION to libs --- src/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 83bc2461..53056c2c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,3 @@ -cmake_minimum_required(VERSION 2.8) - -project(vitastor) include(GNUInstallDirs) @@ -51,6 +48,7 @@ target_link_libraries(vitastor_blk ${LIBURING_LIBRARIES} tcmalloc_minimal ) +set_target_properties(vitastor_blk PROPERTIES VERSION ${VERSION_STRING} SOVERSION 0) # vitastor-osd add_executable(vitastor-osd @@ -74,6 +72,7 @@ target_link_libraries(vitastor_client tcmalloc_minimal ${LIBURING_LIBRARIES} ) +set_target_properties(vitastor_client PROPERTIES VERSION ${VERSION_STRING} SOVERSION 0) # vitastor-nbd add_executable(vitastor-nbd