From a92e6d2c2840c88b8a4a3a2520b71c7b4a63e018 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Mon, 25 Nov 2019 23:26:48 -0500 Subject: [PATCH] Set the soversion in the cmake built library, and arrange for the file name to be generated appropriately too. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b70ad1e..77abdf3 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(...)