summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2021-04-21 03:32:01 +0000
committerAlan Antonuk <alan.antonuk@gmail.com>2021-04-20 20:47:47 -0700
commit6342f395024c9d595a9c29d429bf344aa3269423 (patch)
treefd83b6a04aae8f3a54bfb20ffb7047bac3018bcb /cmake
parentabf958c0679584769ce17e6261710eae83980fce (diff)
downloadrabbitmq-c-6342f395024c9d595a9c29d429bf344aa3269423.tar.gz
lib: make library version match release version
This makes full library version on unix-like systems match the release version. The SOVERSION remains as unchanged, for compatibility sake. Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/VersionFunctions.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/VersionFunctions.cmake b/cmake/VersionFunctions.cmake
index 35292ce..cedf710 100644
--- a/cmake/VersionFunctions.cmake
+++ b/cmake/VersionFunctions.cmake
@@ -11,11 +11,10 @@ function(get_library_version VERSION_ARG)
set(${VERSION_ARG} ${_API_VERSION_MAJOR}.${_API_VERSION_MINOR}.${_API_VERSION_PATCH} PARENT_SCOPE)
endfunction()
-function(compute_soversion CURRENT REVISION AGE VERSION SOVERSION)
+function(compute_soversion CURRENT REVISION AGE SOVERSION)
math(EXPR MAJOR "${CURRENT} - ${AGE}")
math(EXPR MINOR "${AGE}")
math(EXPR PATCH "${REVISION}")
- set(${VERSION} ${MAJOR}.${MINOR}.${PATCH} PARENT_SCOPE)
set(${SOVERSION} ${MAJOR} PARENT_SCOPE)
endfunction() \ No newline at end of file