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 <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2021-07-15 10:58:51 -04:00
parent 6ffbe0b784
commit cae189a504

View File

@ -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