From 1e9d56b9eb802847000144543f18fac0cfee1cd1 Mon Sep 17 00:00:00 2001 From: "Matwey V. Kornilov" Date: Sun, 6 Nov 2022 14:51:51 +0300 Subject: [PATCH] Set correct soversion for the library target --- CMakeLists.txt | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 615b0ab..4e238f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,9 +56,21 @@ list(APPEND LIBRARIES add_library(openvizsla ${SOURCES}) target_link_libraries(openvizsla ${LIBRARIES}) -set_target_properties(openvizsla PROPERTIES - VERSION 0.0.0 - SOVERSION 0) +# +# Here are a set of rules to help you update your library version information: +# +# If the library source code has changed at all since the last update, +# then increment revision (‘c:r:a’ becomes ‘c:r+1:a’). +# If any interfaces have been added, removed, or changed since the last update, +# increment current, and set revision to 0. +# If any interfaces have been added since the last public release, +# then increment age. +# If any interfaces have been removed or changed since the last public release, +# then set age to 0. +# +# set_target_properties(openvizsla PROPERTIES VERSION c.r.a SOVERSION c) +# +set_target_properties(openvizsla PROPERTIES VERSION 1.0.0 SOVERSION 1) target_compile_definitions(openvizsla PUBLIC "_XOPEN_SOURCE;_XOPEN_SOURCE_EXTENDED") generate_export_header(openvizsla)