From e6c7eb76a49500ff6b4b0bbbbf17baaf0bf71f4a Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 13 Oct 2015 14:40:27 +0100 Subject: [PATCH] CMake: make mon and osd depend on EC plugins ...because the services won't start if their git version stamps don't match those of the plugins. This is for the benefit of developers, so that we can do "make ceph-mon" and get a vstart-able result. Signed-off-by: John Spray --- src/CMakeLists.txt | 2 ++ src/erasure-code/CMakeLists.txt | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 62c335f277d..44cb4a43183 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -554,6 +554,7 @@ set(ceph_mon_srcs ceph_mon.cc common/TextTable.cc) add_executable(ceph-mon ${ceph_mon_srcs} $) +add_dependencies(ceph-mon erasure_code_plugins) target_link_libraries(ceph-mon mon boost_thread common os global ${EXTRALIBS} ${CMAKE_DL_LIBS} ${TCMALLOC_LIBS}) install(TARGETS ceph-mon DESTINATION bin) @@ -641,6 +642,7 @@ set(ceph_osd_srcs add_executable(ceph-osd ${ceph_osd_srcs} $ $) +add_dependencies(ceph-osd erasure_code_plugins) target_link_libraries(ceph-osd osd os global ${BLKID_LIBRARIES} ${TCMALLOC_LIBS}) install(TARGETS ceph-osd DESTINATION bin) diff --git a/src/erasure-code/CMakeLists.txt b/src/erasure-code/CMakeLists.txt index 8bcba45b276..b65ffd20ed7 100644 --- a/src/erasure-code/CMakeLists.txt +++ b/src/erasure-code/CMakeLists.txt @@ -15,3 +15,10 @@ target_link_libraries(erasure_code dl) add_dependencies(erasure_code ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) add_library(erasure_code_objs OBJECT ErasureCode.cc) + +add_custom_target(erasure_code_plugins DEPENDS + ec_isa + ec_lrc + ec_jerasure_sse3 + ec_jerasure_sse4 + ec_jerasure) -- 2.47.3