]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CMake: fix libcephfs shared lib generation 5963/head
authorJohn Spray <john.spray@redhat.com>
Thu, 17 Sep 2015 10:26:32 +0000 (11:26 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 17 Sep 2015 10:27:26 +0000 (11:27 +0100)
Previously weren't generating versioned symlinks
etc, so python bindings didn't find it.

Signed-off-by: John Spray <john.spray@redhat.com>
src/CMakeLists.txt

index 814228bf35c75fd8efec334c32ae98e07347d223..5a790fa7023ab551452bad8a6847ef68e019f843 100644 (file)
@@ -788,6 +788,10 @@ if(WITH_LIBCEPHFS)
   target_link_libraries(client osdc mds ${LIBEDIT_LIBS})
   set(libcephfs_srcs libcephfs.cc)
   add_library(cephfs SHARED ${libcephfs_srcs})
+if(${ENABLE_SHARED})
+  set_target_properties(cephfs PROPERTIES OUTPUT_NAME cephfs VERSION 1.0.0
+    SOVERSION 1)
+endif(${ENABLE_SHARED})
   target_link_libraries(cephfs client global)
   install(TARGETS cephfs DESTINATION lib)
   install(DIRECTORY