]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rgw: don't compile POSIX test unless enabled 53884/head
authorLeonid Usov <leonid.usov@ibm.com>
Sun, 8 Oct 2023 14:14:23 +0000 (17:14 +0300)
committerLeonid Usov <leonid.usov@ibm.com>
Sun, 8 Oct 2023 14:33:20 +0000 (17:33 +0300)
Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
src/test/rgw/CMakeLists.txt

index 2743802f830aacee930f2a459aad72c75156d6bd..2e29f4b70b15ab61a9e9fb5b33f4e5a7f01bf065 100644 (file)
@@ -316,13 +316,15 @@ target_link_libraries(radosgw-cr-test ${rgw_libs} librados
   ${CURL_LIBRARIES} ${EXPAT_LIBRARIES} ${BLKID_LIBRARIES}
   GTest::GTest)
 
-# unittest_posix_bucket_cache
-add_executable(unittest_posix_bucket_cache
-       test_posix_bucket_cache.cc)
-add_ceph_unittest(unittest_posix_bucket_cache)
-target_compile_definitions(unittest_posix_bucket_cache PUBLIC LMDB_SAFE_NO_CPP_UTILITIES)
-target_include_directories(unittest_posix_bucket_cache
-  SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw"
-  SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw/driver/posix")
-target_link_libraries(unittest_posix_bucket_cache  ${UNITTEST_LIBS}
-  ${rgw_libs} ${LMDB_LIBRARIES})
+if(WITH_RADOSGW_POSIX)
+  # unittest_posix_bucket_cache
+  add_executable(unittest_posix_bucket_cache
+          test_posix_bucket_cache.cc)
+  add_ceph_unittest(unittest_posix_bucket_cache)
+  target_compile_definitions(unittest_posix_bucket_cache PUBLIC LMDB_SAFE_NO_CPP_UTILITIES)
+  target_include_directories(unittest_posix_bucket_cache
+    SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw"
+    SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw/driver/posix")
+  target_link_libraries(unittest_posix_bucket_cache  ${UNITTEST_LIBS}
+    ${rgw_libs} ${LMDB_LIBRARIES})
+endif(WITH_RADOSGW_POSIX)