summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-01-20 21:05:19 +0000
committerFelix Fietkau2025-01-20 21:05:19 +0000
commit16ff0badbde7e17ec3bd1f827ffe45922956cf86 (patch)
tree99529cd263ed83a97eefdbb485d25ee793b3c169
parent047b2efc1348f489d1cf4526f5c5f3e070cb2411 (diff)
downloaduci-16ff0badbde7e17ec3bd1f827ffe45922956cf86.tar.gz
CMakeLists: add support for including ABIVERSION in the library version number
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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})