From 2355c4545938926ce7fc1e835333cbfab50eaa5b Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 3 Aug 2015 16:11:22 +0100 Subject: [PATCH] CMake: fix rbd build Don't link with 'global' from rbd (to match autotools update fa78739). Fixes "g_ceph_context defined twice" error. Signed-off-by: John Spray --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5a9b17ad79477..c77c19a65adf6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -740,7 +740,7 @@ if(${WITH_RBD}) $ $) set_target_properties(rbd PROPERTIES OUTPUT_NAME rbd) - target_link_libraries(rbd global librbd librados common keyutils udev + target_link_libraries(rbd librbd librados common keyutils udev ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${TCMALLOC_LIBS}) install(TARGETS rbd DESTINATION bin) install(PROGRAMS ${CMAKE_SOURCE_DIR}/src/ceph-rbdnamer DESTINATION bin) -- 2.39.5