]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CMakeLists.txt: build test_trans only if WITH_BLUESTORE=yes
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 28 Oct 2024 15:37:01 +0000 (16:37 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Tue, 29 Oct 2024 20:46:17 +0000 (21:46 +0100)
Fixes build failure with `WITH_BLUESTORE=no` because that unit test
requires Bluestore code.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/test/CMakeLists.txt

index 0ea0bb293475d6e007648199655f6eb6f3967875..d2c287b7284f160ea26672ae14300c05c03c7e0e 100644 (file)
@@ -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