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