summaryrefslogtreecommitdiffstats
path: root/cmake/modules/BuildRocksDB.cmake
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2023-12-15 12:01:46 +0100
committerKefu Chai <tchaikov@gmail.com>2023-12-15 12:11:54 +0100
commit620b68a348f07145c49c12668576a89dee8198cb (patch)
treed3b74b4f33fbc43cee9a4e7b9edebdeb5f66a79e /cmake/modules/BuildRocksDB.cmake
parentMerge pull request #54878 from yuvalif/wip-yuval-split-rgw-tools (diff)
downloadceph-620b68a348f07145c49c12668576a89dee8198cb.tar.xz
ceph-620b68a348f07145c49c12668576a89dee8198cb.zip
cmake/modules/BuildRocksDB.cmake: use string(APPEND ..) when appropriate
less repeatings this way. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Diffstat (limited to 'cmake/modules/BuildRocksDB.cmake')
-rw-r--r--cmake/modules/BuildRocksDB.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/BuildRocksDB.cmake b/cmake/modules/BuildRocksDB.cmake
index f9a28274c40..f81f5248506 100644
--- a/cmake/modules/BuildRocksDB.cmake
+++ b/cmake/modules/BuildRocksDB.cmake
@@ -60,11 +60,11 @@ function(build_rocksdb)
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-Wno-deprecated-copy" HAS_WARNING_DEPRECATED_COPY)
if(HAS_WARNING_DEPRECATED_COPY)
- set(rocksdb_CXX_FLAGS -Wno-deprecated-copy)
+ string(APPEND rocksdb_CXX_FLAGS " -Wno-deprecated-copy")
endif()
check_cxx_compiler_flag("-Wno-pessimizing-move" HAS_WARNING_PESSIMIZING_MOVE)
if(HAS_WARNING_PESSIMIZING_MOVE)
- set(rocksdb_CXX_FLAGS "${rocksdb_CXX_FLAGS} -Wno-pessimizing-move")
+ string(APPEND rocksdb_CXX_FLAGS " -Wno-pessimizing-move")
endif()
if(rocksdb_CXX_FLAGS)
list(APPEND rocksdb_CMAKE_ARGS -DCMAKE_CXX_FLAGS='${rocksdb_CXX_FLAGS}')