cmake: add a possibility to set library version
authorPetr Štetiar <ynezz@true.cz>
Fri, 10 Jan 2020 21:00:04 +0000 (22:00 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 20 Jan 2020 15:54:10 +0000 (16:54 +0100)
commitb0886a37f39a4957005fadc3317ab50ccbcca626
tree3527cf1dad12e8fd71fe3b013451477fbeb5735c
parenta36ee96618a9613c234d1f4404769becdf5c55e3
cmake: add a possibility to set library version

Add a new `ABIVERSION` define which allows to control the SOVERSION used
for the built shared library. This is needed for downstream packaging to
properly track breaking ABI changes when updating to newer versions of
the library.

Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt