]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake/rgw: WITH_RADOSGW_POSIX depends on WITH_RADOSGW_DBSTORE
authorCasey Bodley <cbodley@redhat.com>
Mon, 6 Oct 2025 16:01:13 +0000 (12:01 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 6 Oct 2025 16:07:09 +0000 (12:07 -0400)
with WITH_RADOSGW_DBSTORE=OFF, the posix backend fails to link with:

> /usr/bin/ld: cannot find -ldbstore: No such file or directory

Signed-off-by: Casey Bodley <cbodley@redhat.com>
CMakeLists.txt

index bc255b4df40ed81393d7855c411799b246e67762..a524c1e2918651f98cecc8d6b234e2e1d72ce5a3 100644 (file)
@@ -558,7 +558,7 @@ option(WITH_RADOSGW_DBSTORE "DBStore backend for RADOS Gateway" ON)
 option(WITH_RADOSGW_MOTR "CORTX-Motr backend for RADOS Gateway" OFF)
 option(WITH_RADOSGW_DAOS "DAOS backend for RADOS Gateway" OFF)
 option(WITH_RADOSGW_D4N "D4N wrapper for RADOS Gateway" ON)
-option(WITH_RADOSGW_POSIX "POSIX backend for RADOS Gateway" ON)
+cmake_dependent_option(WITH_RADOSGW_POSIX "POSIX backend for RADOS Gateway" ON WITH_RADOSGW_DBSTORE OFF) # posix depends on dbstore
 option(WITH_RADOSGW_RADOS "RADOS backend for Rados Gateway" ON)
 option(WITH_RADOSGW_SELECT_PARQUET "Support for s3 select on parquet objects" ON)
 option(WITH_RADOSGW_ARROW_FLIGHT "Build arrow flight when not using system-provided arrow" OFF)