Skip to content

Commit

Permalink
fixed rocksdb libdir
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisset committed Nov 23, 2020
1 parent 967bbb5 commit 7f4ee21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 2 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,11 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -g -Wextra -pedantic")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -g -Wall -Wextra -pedantic")

include(build-rocksdb)
include_directories(${ROCKSDB_INCLUDE_DIR})

find_package(BZip2 REQUIRED)
#find_package(Zlib REQUIRED)
#find_package(zstd REQUIRED)
#find_package(lz4 REQUIRED)
#find_package(Rocksdb REQUIRED)

include_directories(${BZIP2_INCLUDE_DIR})
#include_directories(${ZLIB_INCLUDE_DIR})
#include_directories(${ZSTD_INCLUDE_DIR})
#include_directories(${LZ4_INCLUDE_DIR})
include_directories(${ROCKSDB_INCLUDE_DIR})

include_directories("${CMAKE_CURRENT_SOURCE_DIR}/external")

set(THREADS_PREFER_PTHREAD_FLAG ON)
Expand Down
1 change: 1 addition & 0 deletions cmake/build-rocksdb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ExternalProject_Add(rocksdb
INSTALL_DIR ${ROCKSDB_ROOT_DIR}/bin
CMAKE_ARGS -DUSE_RTTI=1
-DCMAKE_INSTALL_PREFIX=${ROCKSDB_ROOT_DIR}
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_CXX_STANDARD=17
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DWITH_TESTS=OFF
Expand Down

0 comments on commit 7f4ee21

Please sign in to comment.