cmake: Fix SOVERSION to match Makefiles
authorMichał Górny <mgorny@gentoo.org>
Mon, 2 Jan 2017 09:14:35 +0000 (10:14 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 2 Jan 2017 09:14:35 +0000 (10:14 +0100)
Fix SOVERSION to use only major lz4 version, as Makefiles do. This
ensure that CMake uses 'liblz.so.1' SONAME and creates 'liblz.so.1'
symlink.

contrib/cmake_unofficial/CMakeLists.txt

index de070d6..2380a0b 100644 (file)
@@ -99,7 +99,7 @@ endif()
 # liblz4
 add_library(lz4 ${LZ4_SOURCES})
 set_target_properties(lz4 PROPERTIES
-  SOVERSION "${LZ4_VERSION_STRING}"
+  SOVERSION "${LZ4_VERSION_MAJOR}"
   VERSION "${LZ4_VERSION_STRING}"
   POSITION_INDEPENDENT_CODE ${LZ4_POSITION_INDEPENDENT_CODE})