From: Kefu Chai Date: Sat, 20 Apr 2024 01:34:46 +0000 (+0800) Subject: cmake: change legacy-option-headers to an interface library target X-Git-Tag: testing/wip-pdonnell-testing-20240520.174012-debug~3^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=35d08ae194a47787753eb42982ab2fe9526fb759;p=ceph-ci.git cmake: change legacy-option-headers to an interface library target so that it can be consumed by other targets and the dependency to the generated header files can be populated properly. Signed-off-by: Kefu Chai --- diff --git a/src/common/options/CMakeLists.txt b/src/common/options/CMakeLists.txt index f12a5513a63..fcec49e549a 100644 --- a/src/common/options/CMakeLists.txt +++ b/src/common/options/CMakeLists.txt @@ -104,8 +104,10 @@ add_options(rgw) add_library(common-options-objs OBJECT ${common_options_srcs}) -add_custom_target(legacy-option-headers - DEPENDS ${legacy_options_headers}) +add_library(legacy-option-headers INTERFACE) +target_sources(legacy-option-headers + PRIVATE + ${legacy_options_headers}) include(AddCephTest) add_ceph_test(validate-options