From 5ade7e53f7ca1d7b43dc2e4ae6ecc14befea4cda Mon Sep 17 00:00:00 2001 From: Sherman Ye Date: Sun, 17 Dec 2023 23:16:15 +0800 Subject: [PATCH] Fixed rocksdb build issue --- project/externals/rocksdb.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/externals/rocksdb.cmake b/project/externals/rocksdb.cmake index 2eab9ee..2fa78e7 100644 --- a/project/externals/rocksdb.cmake +++ b/project/externals/rocksdb.cmake @@ -32,8 +32,9 @@ ExternalProject_Add( -DUSE_RTTI=ON -DFAIL_ON_WARNINGS=OFF -DCMAKE_BUILD_TYPE=Release - "-DCMAKE_EXE_LINKER_FLAGS=${extra_lib_dirs} -lbz2 -lsnappy" + "-DCMAKE_EXE_LINKER_FLAGS=${extra_lib_dirs} -lbz2 -lsnappy -lzstd" "-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -D NPERF_CONTEXT" + "-DCMAKE_SHARED_LINKER_FLAGS=${extra_lib_dirs} -Wl,-rpath=\$ORIGIN:\$ORIGIN/../3rd" BUILD_IN_SOURCE 1 BUILD_COMMAND make -s -j${BUILDING_JOBS_NUM} INSTALL_COMMAND ""