]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: add ceph-common DENABLE_SHARED=OFF support 44321/head
authorAlex ponomarev <alex.ponomarev@phystech.edu>
Wed, 15 Dec 2021 15:51:34 +0000 (18:51 +0300)
committerAlex ponomarev <alex.ponomarev@phystech.edu>
Wed, 15 Dec 2021 16:15:15 +0000 (19:15 +0300)
Add the possibility to build librados static.

Signed-off-by: Alex Ponomarev <alex.ponomarev@phystech.edu>
src/CMakeLists.txt

index 1e32e4029b84541cea7e06c79fb5a0461a7f248b..62ef4012a6269586d333c82c596bc9547c0a552d 100644 (file)
@@ -546,7 +546,7 @@ add_library(common STATIC ${ceph_common_objs})
 target_link_libraries(common ${ceph_common_deps})
 add_dependencies(common legacy-option-headers)
 
-add_library(ceph-common SHARED ${ceph_common_objs})
+add_library(ceph-common ${CEPH_SHARED} ${ceph_common_objs})
 target_link_libraries(ceph-common ${ceph_common_deps})
 add_dependencies(ceph-common legacy-option-headers)
 # appease dpkg-shlibdeps