From 8d35cf82f157409804722a1384bb471bd6bea5ae Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Sat, 13 Jan 2018 09:31:04 +0100 Subject: [PATCH] [cmake] fix SOVERSION --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d963219b..fa7c9653 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -800,12 +800,12 @@ else () if (BUILD_SHARED) add_library (libzmq SHARED $ ${public_headers} ${html-docs} ${readme-docs} ${zmq-pkgconfig} ${CMAKE_CURRENT_BINARY_DIR}/version.rc) target_link_libraries (libzmq ${OPTIONAL_LIBRARIES}) - # NOTE: the SOVERSION MUST be the same as the one generated by libtool! + # NOTE: the SOVERSION and VERSION MUST be the same as the one generated by libtool! It is NOT the same as the version of the package. set_target_properties (libzmq PROPERTIES COMPILE_DEFINITIONS "DLL_EXPORT" PUBLIC_HEADER "${public_headers}" - VERSION ${ZMQ_VERSION} - SOVERSION "5.1.4" + VERSION "5.1.4" + SOVERSION "5" OUTPUT_NAME "zmq" PREFIX "lib") if (ZMQ_BUILD_FRAMEWORK)