Browse Source

Set the soversion in the cmake built library, and arrange for the file name to be generated appropriately too.

tags/json-c-0.14-20200419
Eric Haszlakiewicz 5 years ago
parent
commit
a92e6d2c28
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      CMakeLists.txt

+ 3
- 0
CMakeLists.txt View 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(...)


Loading…
Cancel
Save