Skip to content

Commit

Permalink
Set proper soversion.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Egor Shestakov committed Feb 24, 2024
1 parent 80350b0 commit 26a4654
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)

Expand Down
2 changes: 1 addition & 1 deletion src/location/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)

Expand Down

0 comments on commit 26a4654

Please sign in to comment.