From e6e1f8494ec3d2e1dc21b7a9dbbcf57a5397e134 Mon Sep 17 00:00:00 2001 From: yangwei Date: Mon, 7 Sep 2020 14:15:48 +0800 Subject: [PATCH] =?UTF-8?q?UPDATE:=E5=A2=9E=E5=8A=A0soversion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ff3645..e74949d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ set(lib_name MESA_handle_logger) project (${lib_name}) +set(LIB_MAJOR_VERSION 2) +set(LIB_MINOR_VERSION 0) + set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) include(Version) @@ -50,6 +53,9 @@ else() set_target_properties(${lib_name}_shared PROPERTIES OUTPUT_NAME ${lib_name}) endif() +set_target_properties(${lib_name}_shared PROPERTIES VERSION ${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}) +set_target_properties(${lib_name}_shared PROPERTIES SOVERSION ${LIB_MAJOR_VERSION}) + # static Library Output add_library(${lib_name}_static STATIC ${SRC}) target_link_libraries(${lib_name}_static -Wl,--whole-archive zlog-static -Wl,--no-whole-archive)