]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Set the soversion in the cmake built library, and arrange for the file name to be...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Tue, 26 Nov 2019 04:26:48 +0000 (23:26 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Tue, 26 Nov 2019 04:26:48 +0000 (23:26 -0500)
CMakeLists.txt

index b70ad1ec5efd272956c69737967b3b6ab787ae25..77abdf38fcf85713604c7bb073d2a22eecafe422 100644 (file)
@@ -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(...)