From aa8c48e9c139654814c88f9148118c707507e275 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Thu, 17 Feb 2022 13:04:45 +0100 Subject: [PATCH] cmake: add a possibility to set library version MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: Petr Å tetiar --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c98b12a..f53e726 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,3 +48,7 @@ INSTALL(FILES ustream-ssl.h INSTALL(TARGETS ustream-ssl LIBRARY DESTINATION lib ) + +IF(ABIVERSION) + SET_TARGET_PROPERTIES(ustream-ssl PROPERTIES VERSION ${ABIVERSION}) +ENDIF() -- 2.30.2