1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Description: allow override of libplotada shared object version
The SOVersion sometimes needs to evolve independently of the API (and
thus, is unrelated with semantic versioning), or even without
knowledge by the upstream author. For example, a rebuild of the
library with a different compiler may break its ABI.
.
This patch provides redistributors like Debian an easy way to set the
libplplotada_SOVERSION on the CMake command line, without patching
CMake files.
.
This patch only affects the Ada library, but the suggestion applies
to any language allowing dynamic linking.
.
As far as I know, the part added by _VERSION and the related symbolic
links are a complexity added by CMake (probably in order to follow
the GNU libtool conventions), but the linker only cares about the
SOVERSION.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: https://sourceforge.net/p/plplot/mailman/message/37151796/
Reviewed-By: Rafael Laboissière <rafael@debian.org>
Last-Update: 2020-11-15
--- a/cmake/modules/plplot_version.cmake
+++ b/cmake/modules/plplot_version.cmake
@@ -58,7 +58,7 @@
# Libraries with source code in the bindings subdirectory tree.
-set(plplotada_SOVERSION 4)
+set(plplotada_SOVERSION 4 CACHE STRING "libplplotada shared object version")
set(plplotada_VERSION ${plplotada_SOVERSION}.0.0)
set(plplotcxx_SOVERSION 15)
|