From e017aab23c8f8d619fbeecfe55a7ab113f7f0fa6 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 17 Sep 2015 11:26:32 +0100 Subject: [PATCH] CMake: fix libcephfs shared lib generation Previously weren't generating versioned symlinks etc, so python bindings didn't find it. Signed-off-by: John Spray --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 814228bf35c75..5a790fa7023ab 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 -- 2.39.5