Skip to content

Commit fb1d480

Browse files
committed
Added the SOVERSION same as autotools.
Set CMAKE_MINIMUM_REQUIRED to 2.6.4.
1 parent c8fa0be commit fb1d480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.7)
1+
CMAKE_MINIMUM_REQUIRED (VERSION 2.6.4)
22
PROJECT (msgpack)
33

44
SET (VERSION 0.5.7)
55
SET (VERSION_MAJOR 5)
66
SET (VERSION_MINOR 7)
77

8-
98
FIND_PACKAGE (GTest)
109
FIND_PACKAGE (ZLIB)
1110
FIND_PACKAGE (Threads)
@@ -149,6 +148,7 @@ ADD_LIBRARY (msgpack-static STATIC
149148

150149
SET_TARGET_PROPERTIES (msgpack-static PROPERTIES OUTPUT_NAME "msgpack")
151150
SET_TARGET_PROPERTIES (msgpack PROPERTIES IMPORT_SUFFIX "_import.lib")
151+
SET_TARGET_PROPERTIES (msgpack PROPERTIES SOVERSION 3 VERSION 3.0.0)
152152

153153
IF (MSGPACK_BUILD_TESTS)
154154
ENABLE_TESTING ()

0 commit comments

Comments
 (0)