diff options
author | Kefu Chai <kchai@redhat.com> | 2018-04-18 09:05:45 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2018-04-20 19:17:37 +0200 |
commit | 3178bb963886f94411c0e90fb5c4ad93a0ea775b (patch) | |
tree | 405a74302165620d2a3711e7641a0325ced2b74b /cmake | |
parent | cmake,make-dist: use sha256 instead of md5 for checksum (diff) | |
download | ceph-3178bb963886f94411c0e90fb5c4ad93a0ea775b.tar.xz ceph-3178bb963886f94411c0e90fb5c4ad93a0ea775b.zip |
cmake: disable gflags support in rocksdb
to silence the warnings like
CMake Warning at CMakeLists.txt:73 (find_package):
By not providing "Findgflags.cmake" in CMAKE_MODULE_PATH this project
has
asked CMake to find a package configuration file provided by "gflags",
but
CMake did not find one.
Could not find a package configuration file provided by "gflags" with
any
of the following names:
gflagsConfig.cmake
gflags-config.cmake
Add the installation prefix of "gflags" to CMAKE_PREFIX_PATH or set
"gflags_DIR" to a directory containing one of the above files. If
"gflags"
provides a separate development package or SDK, be sure it has been
installed.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/BuildRocksDB.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/BuildRocksDB.cmake b/cmake/modules/BuildRocksDB.cmake index 8e0ad577887..10dfc1b3c6b 100644 --- a/cmake/modules/BuildRocksDB.cmake +++ b/cmake/modules/BuildRocksDB.cmake @@ -1,7 +1,8 @@ include(CheckCXXSourceRuns) function(do_build_rocksdb) - set(ROCKSDB_CMAKE_ARGS -DCMAKE_POSITION_INDEPENDENT_CODE=ON) + set(ROCKSDB_CMAKE_ARGS -DCMAKE_POSITION_INDEPENDENT_CODE=ON) + list(APPEND ROCKSDB_CMAKE_ARGS -DWITH_GFLAGS=OFF) if(ALLOCATOR STREQUAL "jemalloc") list(APPEND ROCKSDB_CMAKE_ARGS -DWITH_JEMALLOC=ON) |