Add option to use an extra lib directory for LevelDB

This commit is contained in:
BlockMen 2015-12-05 23:52:42 +01:00
parent 340957038f
commit ea858d86f4

View File

@ -184,6 +184,11 @@ if(ENABLE_LEVELDB)
set(USE_LEVELDB TRUE)
message(STATUS "LevelDB backend enabled.")
include_directories(${LEVELDB_INCLUDE_DIR})
find_path(LEVELDB_EXTRA_LIBS_INCLUDE_DIR extra_libs/some.lib NO_DEFAULT_PATH)
if(LEVELDB_EXTRA_LIBS_INCLUDE_DIR)
link_directories(${LEVELDB_EXTRA_LIBS_INCLUDE_DIR})
endif()
else()
message(STATUS "LevelDB not found!")
endif()