From c57320598bcb2ad1d4024af1f7714d47de587ab0 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sat, 13 Jul 2024 13:44:00 +0900 Subject: [PATCH] Update version to 1.1 Specify "SOVERSION" for shared lib so that libUDPC.so.1 is the default instead of libUDPC.so.1.0 . --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ed0671..b123db4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,8 @@ cmake_minimum_required(VERSION 3.7) project(UDPC) -set(UDPC_VERSION 1.0) +set(UDPC_VERSION 1.1) +set(UDPC_SOVERSION 1) set(UDPC_SOURCES src/UDPConnection.cpp @@ -22,7 +23,7 @@ endif() add_library(UDPC ${UDPC_SOURCES}) -set_target_properties(UDPC PROPERTIES VERSION ${UDPC_VERSION}) +set_target_properties(UDPC PROPERTIES VERSION ${UDPC_VERSION} SOVERSION ${UDPC_SOVERSION}) target_compile_features(UDPC PUBLIC cxx_std_11) target_link_libraries(UDPC PUBLIC pthread)