From: Igor Fedotov Date: Mon, 28 May 2018 20:00:42 +0000 (+0300) Subject: cmake: enable RTTI for both debug and release RocksDB builds X-Git-Tag: v13.2.1~143^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22299%2Fhead;p=ceph.git cmake: enable RTTI for both debug and release RocksDB builds Overwise ceph build in Release mode is failing. Signed-off-by: Igor Fedotov (cherry picked from commit 83841bf3de4f664df1c5b1b7997861acf2ede767) --- diff --git a/cmake/modules/BuildRocksDB.cmake b/cmake/modules/BuildRocksDB.cmake index 71a1e2a1a2c6..1c1a257b2e30 100644 --- a/cmake/modules/BuildRocksDB.cmake +++ b/cmake/modules/BuildRocksDB.cmake @@ -20,6 +20,7 @@ function(do_build_rocksdb) list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_AR=${CMAKE_AR}) list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) list(APPEND ROCKSDB_CMAKE_ARGS -DFAIL_ON_WARNINGS=OFF) + list(APPEND ROCKSDB_CMAKE_ARGS -DUSE_RTTI=1) # we use an external project and copy the sources to bin directory to ensure # that object files are built outside of the source tree.