From 38dde09fee7a267b1762c87ad1eeeeeebb527e44 Mon Sep 17 00:00:00 2001 From: Vedingrot <37119849+Vedingrot@users.noreply.github.com> Date: Sat, 24 Feb 2024 20:07:28 +0700 Subject: [PATCH] Set proper soversion. (#117) Soversion should only reflects the major version, since the soname link cannot be created due to equal name as the library. Library libQMaplibre.so.3.0.0 prevents soname libQMaplibre.so.3.0.0 from being created. Co-authored-by: Egor Shestakov --- src/core/CMakeLists.txt | 2 +- src/location/CMakeLists.txt | 2 +- src/widgets/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 86914c8..fb94765 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -85,7 +85,7 @@ set_target_properties( AUTOMOC ON OUTPUT_NAME ${MLN_QT_NAME} VERSION ${MLN_QT_VERSION} - SOVERSION ${MLN_QT_VERSION_COMPATIBILITY} + SOVERSION ${PROJECT_VERSION_MAJOR} PUBLIC_HEADER "${Core_Headers}" ) diff --git a/src/location/CMakeLists.txt b/src/location/CMakeLists.txt index c93b509..7be2c24 100644 --- a/src/location/CMakeLists.txt +++ b/src/location/CMakeLists.txt @@ -32,7 +32,7 @@ set_target_properties( AUTOMOC ON OUTPUT_NAME ${MLN_QT_NAME}Location VERSION ${MLN_QT_VERSION} - SOVERSION ${MLN_QT_VERSION_COMPATIBILITY} + SOVERSION ${PROJECT_VERSION_MAJOR} ) # Qt MOC diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt index 55f8522..6316baf 100644 --- a/src/widgets/CMakeLists.txt +++ b/src/widgets/CMakeLists.txt @@ -46,7 +46,7 @@ set_target_properties( AUTOMOC ON OUTPUT_NAME ${MLN_QT_NAME}Widgets VERSION ${MLN_QT_VERSION} - SOVERSION ${MLN_QT_VERSION_COMPATIBILITY} + SOVERSION ${PROJECT_VERSION_MAJOR} PUBLIC_HEADER "${Widgets_Headers}" )