From cae189a504c151bbf640cbab2b75eccc6ecb0245 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 15 Jul 2021 10:58:51 -0400 Subject: [PATCH] cmake: add transitive dependency on legacy-option-headers the legacy-option-headers target is only marked as a dependency of the common-objs and common-common-objs. because those targets are OBJECT libraries, their dependencies aren't inherited by the targets that link common-objs or common-common-objs this adds the dependencies manually, so that changes to the config yaml files will cause legacy-option-headers to regenerate the headers Signed-off-by: Casey Bodley --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 760a2ceb0ca0d..749c29402c89f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -548,9 +548,11 @@ endif() 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}) target_link_libraries(ceph-common ${ceph_common_deps}) +add_dependencies(ceph-common legacy-option-headers) # appease dpkg-shlibdeps set_target_properties(ceph-common PROPERTIES SOVERSION 2 -- 2.39.5