From: Max Kellermann Date: Mon, 28 Oct 2024 15:37:01 +0000 (+0100) Subject: CMakeLists.txt: build test_trans only if WITH_BLUESTORE=yes X-Git-Tag: v20.0.0~240^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d67934bbb05684ac92cf483c4218af2c5f268f5d;p=ceph.git CMakeLists.txt: build test_trans only if WITH_BLUESTORE=yes Fixes build failure with `WITH_BLUESTORE=no` because that unit test requires Bluestore code. Signed-off-by: Max Kellermann --- diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 0ea0bb293475..d2c287b7284f 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -168,7 +168,7 @@ add_executable(ceph_test_mutate target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS}) -if(NOT WIN32) +if(WITH_BLUESTORE AND NOT WIN32) # test_trans add_executable(test_trans test_trans.cc