From: Felix Fietkau Date: Mon, 20 Jan 2025 21:05:19 +0000 (+0100) Subject: CMakeLists: add support for including ABIVERSION in the library version number X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=16ff0badbde7e17ec3bd1f827ffe45922956cf86;p=project%2Fuci.git CMakeLists: add support for including ABIVERSION in the library version number Signed-off-by: Felix Fietkau --- 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})