Skip to content

Commit

Permalink
Merge pull request #2886 from SylvainCorlay/cmake-soversion
Browse files Browse the repository at this point in the history
[cmake] fix SOVERSION
  • Loading branch information
bluca authored Jan 13, 2018
2 parents 21927a7 + 8d35cf8 commit e2ed5a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -800,12 +800,12 @@ else ()
if (BUILD_SHARED)
add_library (libzmq SHARED $<TARGET_OBJECTS:objects> ${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)
Expand Down

0 comments on commit e2ed5a3

Please sign in to comment.