]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake/cephfs: link correct Boost libraries for cephfs tools 67619/head
authorKefu Chai <k.chai@proxmox.com>
Wed, 4 Mar 2026 07:37:17 +0000 (15:37 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 5 Mar 2026 06:33:54 +0000 (14:33 +0800)
commit1c898b6092ba8d95e6e4756c9a65d4341f7b99ef
treed94b10683284983415d50d1a9ea290d0fe540134
parent9b617f518f08f5d38a3a1efdf10245d342d375cf
cmake/cephfs: link correct Boost libraries for cephfs tools

The cephfs tools link uring::uring unconditionally, but the uring::uring
CMake target only exists when WITH_LIBURING=ON. This breaks the build
when WITH_LIBURING=OFF.

These tools don't use Boost.Asio for file I/O, so they don't need
io_uring support. Now that the previous commit scopes BOOST_ASIO_HAS_IO_URING
to the Boost::asio target, fix each tool to link the correct libraries:

- cephfs-journal-tool, cephfs-table-tool, cephfs-data-scan: replace
  uring::uring with Boost::boost. These tools use Boost.Asio and
  Boost.Process (header-only libraries) via ProgressTracker.cc, but
  do not need io_uring support, so Boost::boost is the correct target
  to express that dependency. They also link Boost::filesystem because
  Boost.Process v1 depends on Boost.Filesystem for path operations
  (e.g. search_path()).
- cephfs-meta-injection: simply remove uring::uring. This tool does not
  use Boost.Asio or Boost.Process, so it needs neither uring::uring nor
  Boost::boost.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/tools/cephfs/CMakeLists.txt