From: Eric Haszlakiewicz Date: Tue, 26 Nov 2019 04:26:48 +0000 (-0500) Subject: Set the soversion in the cmake built library, and arrange for the file name to be... X-Git-Tag: json-c-0.14-20200419~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a92e6d2c2840c88b8a4a3a2520b71c7b4a63e018;p=thirdparty%2Fjson-c.git Set the soversion in the cmake built library, and arrange for the file name to be generated appropriately too. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b70ad1ec..77abdf38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,6 +257,9 @@ add_library(${PROJECT_NAME} ${JSON_C_SOURCES} ${JSON_C_HEADERS} ) +set_target_properties(${PROJECT_NAME} PROPERTIES + VERSION 4.0.0 + SOVERSION 4) # If json-c is used as subroject it set to target correct interface -I flags and allow # to build external target without extra include_directories(...)