]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: add transitive dependency on legacy-option-headers 42357/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 15 Jul 2021 14:58:51 +0000 (10:58 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 15 Jul 2021 14:58:53 +0000 (10:58 -0400)
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>
src/CMakeLists.txt

index 760a2ceb0ca0d23802e25e80b2ccaa16dd4e9ba4..749c29402c89fc80a6b6364688253cbb1cfc51d8 100644 (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