]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake/cephfs: fix options to enable client and dependencies
authorCasey Bodley <cbodley@redhat.com>
Wed, 5 Mar 2025 18:22:38 +0000 (13:22 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 17 Mar 2025 19:43:23 +0000 (15:43 -0400)
commit30ae9e3a516aef69aafc8b087a9f25b69819220f
treead1892bb835172594bd00894fa263d6328302f0f
parent2a2261e1bb866d5fa0f77840aa71ca5b6db956e1
cmake/cephfs: fix options to enable client and dependencies

invoking cmake with -DWITH_LIBCEPHFS=OFF fails to configure the client target:

CMake Error at src/client/CMakeLists.txt:13 (target_link_libraries):
  Target "client" links to:

    Boost::locale

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

because the client target is not conditional on WITH_LIBCEPHFS in src/CMakeLists.txt:

add_subdirectory(client)

if(WITH_LIBCEPHFS)

because client is also needed for ceph-fuse, make the client and its
dependencies depend on WITH_LIBCEPHFS OR WITH_FUSE

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 70eb1d64ac1ea6e7202d42571f83c34d3758ad8f)
CMakeLists.txt
src/CMakeLists.txt