summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Vlasenko <viy@altlinux.org>2021-11-28 19:20:12 +0200
committerIgor Vlasenko <viy@altlinux.org>2021-11-28 20:00:50 +0200
commitf82e13ac91716ff60d4e656e1f825ce727b7fd7d (patch)
treeb5eaeb966a703ba66e6787a51d3476f4dcd97409
parentacc64ee5cd58277490a89d4c4f97e3f3839beff5 (diff)
let the library VERSION = the project's one (issue #490)
This is a cross-platform usability improvement. On Unix platforms it is customary for library to have VERSION and SOVERSION, where SOVERSION changes on major API changes and VERSION is the same as project's version, so library users always know what vesion this library belongs to just by name. With this patch we have a proper libmimalloc.so.VERSION on Unix.
-rw-r--r--cmake/mimalloc-config-version.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/mimalloc-config-version.cmake b/cmake/mimalloc-config-version.cmake
index ed95c19..3768d7d 100644
--- a/cmake/mimalloc-config-version.cmake
+++ b/cmake/mimalloc-config-version.cmake
@@ -1,6 +1,7 @@
set(mi_version_major 1)
set(mi_version_minor 7)
-set(mi_version ${mi_version_major}.${mi_version_minor})
+set(mi_version_patch 3)
+set(mi_version ${mi_version_major}.${mi_version_minor}.${mi_version_patch})
set(PACKAGE_VERSION ${mi_version})
if(PACKAGE_FIND_VERSION_MAJOR)