From 16ff0badbde7e17ec3bd1f827ffe45922956cf86 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 20 Jan 2025 22:05:19 +0100 Subject: [PATCH] CMakeLists: add support for including ABIVERSION in the library version number Signed-off-by: Felix Fietkau --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd27233..6b4c000 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,10 @@ ADD_LIBRARY(uci SHARED ${LIB_SOURCES}) SET_TARGET_PROPERTIES(uci PROPERTIES OUTPUT_NAME uci) TARGET_LINK_LIBRARIES(uci ${ubox}) +IF(ABIVERSION) + SET_TARGET_PROPERTIES(uci PROPERTIES VERSION ${ABIVERSION}) +ENDIF() + ADD_LIBRARY(uci-static STATIC ${LIB_SOURCES}) SET_TARGET_PROPERTIES(uci-static PROPERTIES OUTPUT_NAME uci) TARGET_LINK_LIBRARIES(uci-static ${ubox-static}) -- 2.30.2