File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,8 @@ IF (BUILD_SHARED_LIBS OR MSGPACK_ENABLE_SHARED)
192192 ${msgpackc_HEADERS}
193193 )
194194
195+ SET_TARGET_PROPERTIES (msgpackc PROPERTIES SOVERSION 2 VERSION 2.0.0)
196+
195197 TARGET_INCLUDE_DIRECTORIES (msgpackc
196198 PUBLIC
197199 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
@@ -230,7 +232,6 @@ IF (MSGPACK_ENABLE_STATIC)
230232 ELSEIF (MINGW)
231233 SET_TARGET_PROPERTIES (msgpackc PROPERTIES IMPORT_SUFFIX ".dll.a" )
232234 ENDIF ()
233- SET_TARGET_PROPERTIES (msgpackc PROPERTIES SOVERSION 2 VERSION 2.0.0)
234235 ENDIF ()
235236ENDIF ()
236237
@@ -307,7 +308,7 @@ IF (BUILD_SHARED_LIBS OR MSGPACK_ENABLE_SHARED)
307308ENDIF ()
308309
309310IF (MSGPACK_ENABLE_STATIC)
310- SET ( MSGPACK_INSTALLTARGETS msgpackc-static )
311+ LIST ( APPEND MSGPACK_INSTALLTARGETS msgpackc-static )
311312ENDIF ()
312313
313314INSTALL (TARGETS ${MSGPACK_INSTALLTARGETS} EXPORT msgpack-targets
You can’t perform that action at this time.
0 commit comments