File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ jsoncpp_parse_version( ${JSONCPP_VERSION} JSONCPP_VERSION )
7474#IF(NOT JSONCPP_VERSION_FOUND)
7575# MESSAGE(FATAL_ERROR "Failed to parse version string properly. Expect X.Y.Z")
7676#ENDIF(NOT JSONCPP_VERSION_FOUND)
77+ SET ( JSONCPP_SOVERSION 11 )
7778SET ( JSONCPP_USE_SECURE_MEMORY "0" CACHE STRING "-D...=1 to use memory-wiping allocator for STL" )
7879
7980MESSAGE (STATUS "JsonCpp Version: ${JSONCPP_VERSION_MAJOR} .${JSONCPP_VERSION_MINOR} .${JSONCPP_VERSION_PATCH} " )
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ENDIF()
4242IF (BUILD_SHARED_LIBS )
4343 ADD_DEFINITIONS ( -DJSON_DLL_BUILD )
4444 ADD_LIBRARY (jsoncpp_lib SHARED ${PUBLIC_HEADERS} ${jsoncpp_sources} )
45- SET_TARGET_PROPERTIES ( jsoncpp_lib PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_VERSION_MAJOR } )
45+ SET_TARGET_PROPERTIES ( jsoncpp_lib PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_SOVERSION } )
4646 SET_TARGET_PROPERTIES ( jsoncpp_lib PROPERTIES OUTPUT_NAME jsoncpp
4747 DEBUG_OUTPUT_NAME jsoncpp${DEBUG_LIBNAME_SUFFIX} )
4848
@@ -66,7 +66,7 @@ ENDIF()
6666
6767IF (BUILD_STATIC_LIBS)
6868 ADD_LIBRARY (jsoncpp_lib_static STATIC ${PUBLIC_HEADERS} ${jsoncpp_sources} )
69- SET_TARGET_PROPERTIES ( jsoncpp_lib_static PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_VERSION_MAJOR } )
69+ SET_TARGET_PROPERTIES ( jsoncpp_lib_static PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_SOVERSION } )
7070 SET_TARGET_PROPERTIES ( jsoncpp_lib_static PROPERTIES OUTPUT_NAME jsoncpp
7171 DEBUG_OUTPUT_NAME jsoncpp${DEBUG_LIBNAME_SUFFIX} )
7272
You can’t perform that action at this time.
0 commit comments