summaryrefslogtreecommitdiffstats
path: root/src/erasure-code/lrc/CMakeLists.txt
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-04-22 14:35:15 +0200
committerKefu Chai <kchai@redhat.com>2017-04-22 18:05:19 +0200
commit0f5947d31e41e0c08a00d4d4339fc525ed6a28bd (patch)
treecef44058ec7ddf8384567b318f7338d59430f284 /src/erasure-code/lrc/CMakeLists.txt
parentMerge pull request #14707 from wjwithagen/wip-wjw-freebsd-kqueue-logging (diff)
downloadceph-0f5947d31e41e0c08a00d4d4339fc525ed6a28bd.tar.xz
ceph-0f5947d31e41e0c08a00d4d4339fc525ed6a28bd.zip
cmake: do not compile crush twice
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/erasure-code/lrc/CMakeLists.txt')
-rw-r--r--src/erasure-code/lrc/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/erasure-code/lrc/CMakeLists.txt b/src/erasure-code/lrc/CMakeLists.txt
index f5b79809402..c25fc695f2f 100644
--- a/src/erasure-code/lrc/CMakeLists.txt
+++ b/src/erasure-code/lrc/CMakeLists.txt
@@ -4,6 +4,7 @@ set(lrc_srcs
ErasureCodePluginLrc.cc
ErasureCodeLrc.cc
$<TARGET_OBJECTS:erasure_code_objs>
+ $<TARGET_OBJECTS:crush_objs>
${CMAKE_SOURCE_DIR}/src/common/str_map.cc
)
@@ -11,7 +12,7 @@ add_library(ec_lrc SHARED ${lrc_srcs})
add_dependencies(ec_lrc ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
set_target_properties(ec_lrc PROPERTIES
INSTALL_RPATH "")
-target_link_libraries(ec_lrc crush json_spirit)
+target_link_libraries(ec_lrc json_spirit)
install(TARGETS ec_lrc DESTINATION ${erasure_plugin_dir})
if(WITH_EMBEDDED)