From: Petr Štetiar Date: Thu, 17 Feb 2022 12:04:45 +0000 (+0100) Subject: cmake: add a possibility to set library version X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=aa8c48e9c139654814c88f9148118c707507e275;p=project%2Fustream-ssl.git 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: Petr Štetiar --- 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()