Commit 9a20f42f authored by Constantin Rack's avatar Constantin Rack Committed by GitHub

Merge pull request #2235 from bluca/cmake_soversion

Problem: CMake build uses library version as the ABI version
parents febf8015 abeaba15
......@@ -733,11 +733,12 @@ if (MSVC)
OUTPUT_NAME "libzmq-static")
else ()
add_library (libzmq SHARED ${sources} ${public_headers} ${html-docs} ${readme-docs} ${zmq-pkgconfig})
# NOTE: the SOVERSION MUST be the same as the one generated by libtool!
set_target_properties (libzmq PROPERTIES
COMPILE_DEFINITIONS "DLL_EXPORT"
PUBLIC_HEADER "${public_headers}"
VERSION ${ZMQ_VERSION}
SOVERSION "${ZMQ_VERSION_MAJOR}.${ZMQ_VERSION_MINOR}.0"
SOVERSION "5.1.0"
OUTPUT_NAME "libzmq"
PREFIX "")
if (ZMQ_BUILD_FRAMEWORK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment