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. Suggested-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
parent
a36ee96618
commit
b0886a37f3
1 changed files with 6 additions and 0 deletions
|
@ -92,3 +92,9 @@ IF(EXISTS ${json})
|
||||||
)
|
)
|
||||||
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
IF(ABIVERSION)
|
||||||
|
SET_TARGET_PROPERTIES(ubox PROPERTIES VERSION ${ABIVERSION})
|
||||||
|
SET_TARGET_PROPERTIES(json_script PROPERTIES VERSION ${ABIVERSION})
|
||||||
|
SET_TARGET_PROPERTIES(blobmsg_json PROPERTIES VERSION ${ABIVERSION})
|
||||||
|
ENDIF()
|
||||||
|
|
Loading…
Reference in a new issue