]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: link legacy-option-headers from targets that use legacy options 69215/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Mon, 1 Jun 2026 06:52:03 +0000 (14:52 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Mon, 1 Jun 2026 11:41:15 +0000 (19:41 +0800)
commit35fadf93f5dcf7b7eaa66eed79765b1ea6c0aa83
tree0e200997779c43641fd920e5c6782abe2edee8ab
parent6790982813e539395be3ddad040ba13c52b2c7e5
cmake: link legacy-option-headers from targets that use legacy options

The *_legacy_options.h headers that define the legacy ConfigValues
members are generated at build time by y2c.py. Linking the
legacy-option-headers INTERFACE library adds an order dependency on
that step. A few targets reference legacy members without linking it,
so under a parallel build they can be compiled before the headers
exist and fail with "class ConfigValues has no member ...":

  neorados_objs, neorados_api_obj - objecter_inflight_ops,
      ms_die_on_unhandled_msg (via Objecter.h / Messenger.h)
  ceph_zstd - compressor_zstd_level
  heap_profiler - log_file

Link legacy-option-headers from them, as ceph_lz4, ceph_snappy and
jerasure_utils already do.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/compressor/zstd/CMakeLists.txt
src/neorados/CMakeLists.txt
src/perfglue/CMakeLists.txt