From: Casey Bodley Date: Thu, 15 Jul 2021 14:58:51 +0000 (-0400) Subject: cmake: add transitive dependency on legacy-option-headers X-Git-Tag: v17.1.0~1375^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42357%2Fhead;p=ceph.git 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 --- 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