]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: disable gflags support in rocksdb 21484/head
authorKefu Chai <kchai@redhat.com>
Wed, 18 Apr 2018 07:05:45 +0000 (15:05 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 20 Apr 2018 17:17:37 +0000 (01:17 +0800)
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>
cmake/modules/BuildRocksDB.cmake

index 8e0ad577887a5c5b08915adfbf51aba1c2c0e955..10dfc1b3c6bf442f760036e3cece233440c9d76a 100644 (file)
@@ -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)