summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-01-02 09:14:35 (GMT)
committerMichał Górny <mgorny@gentoo.org>2017-01-02 09:14:35 (GMT)
commit9e867db90adeacd3f2e241c1f3d1097640c69c78 (patch)
treee51d0be0ebd13ec9b9484922d0b1541a5a79699f /contrib
parent018ddf799917ee5c68b5266d6f42277fa6750080 (diff)
downloadlz4-9e867db90adeacd3f2e241c1f3d1097640c69c78.zip
lz4-9e867db90adeacd3f2e241c1f3d1097640c69c78.tar.gz
lz4-9e867db90adeacd3f2e241c1f3d1097640c69c78.tar.bz2
cmake: Fix SOVERSION to match Makefiles
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.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/cmake_unofficial/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cmake_unofficial/CMakeLists.txt b/contrib/cmake_unofficial/CMakeLists.txt
index de070d6..2380a0b 100644
--- a/contrib/cmake_unofficial/CMakeLists.txt
+++ b/contrib/cmake_unofficial/CMakeLists.txt
@@ -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})