From: Kefu Chai Date: Thu, 1 Nov 2018 03:50:45 +0000 (+0800) Subject: cmake: do not create symlink for libceph-common.so.* X-Git-Tag: v14.1.0~1018^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=701136b1e297bb364286f875ec2333c0f0ac5e4e;p=ceph.git cmake: do not create symlink for libceph-common.so.* and bump up its soversion, so it won't conflict with libceph-common.so.0 offered by librados2. Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0ea7f9690fbf..de0a3aa76bbc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -397,7 +397,7 @@ add_library(ceph-common SHARED ${ceph_common_objs}) target_link_libraries(ceph-common ${ceph_common_deps}) # appease dpkg-shlibdeps set_target_properties(ceph-common PROPERTIES - SOVERSION 0 + SOVERSION 1 INSTALL_RPATH "") if(NOT APPLE) # Apple uses Mach-O, not ELF. so this option does not apply to APPLE. @@ -413,7 +413,11 @@ if(NOT APPLE) PROPERTY LINK_FLAGS "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions") endif() -install(TARGETS ceph-common DESTINATION ${CMAKE_INSTALL_PKGLIBDIR}) +install( + TARGETS ceph-common + LIBRARY + DESTINATION ${CMAKE_INSTALL_PKGLIBDIR} + NAMELINK_SKIP) if(${WITH_LTTNG}) add_subdirectory(tracing)