cmake: add a possibility to set library version
authorFelix Fietkau <nbd@nbd.name>
Mon, 15 Feb 2021 18:11:58 +0000 (19:11 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 15 Feb 2021 18:12:12 +0000 (19:12 +0100)
commit2537be01858710e714c329153760c64fe3f8a73e
tree5887daa1eac8c9bb3ca9beb86e468aa88cabdfb0
parentd1d9ddf98d39b0bdc055060fb962335439445690
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.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
CMakeLists.txt