From: svost Date: Mon, 20 Dec 2021 09:52:35 +0000 (+0300) Subject: Update CMake - berkeleydb X-Git-Tag: nvc-v0.5.9~91^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=254286816492af8a4ef397d5599c993a3383744b Update CMake - berkeleydb --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 07773fd..7ce380a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -100,7 +100,18 @@ elseif(EXISTS ${BerkeleyDB_LIBS}/libdb_cxx.dylib) elseif(EXISTS ${BerkeleyDB_LIBS}/libdb_cxx.dll) list(APPEND ALL_LIBRARIES ${BerkeleyDB_LIBS}/libdb_cxx.dll) else() - message(FATAL_ERROR "Unable to find libdb_cxx library in ${BerkeleyDB_LIBS} directory. Try to specify either library path via BerkeleyDB_LIBS or berkeley db root path via BerkeleyDB_ROOT variable.") + set(BerkeleyDB_LIBS ${BerkeleyDB_ROOT}/lib/x86_64-linux-gnu) + if (EXISTS ${BerkeleyDB_LIBS}/libdb_cxx.a) + list(APPEND ALL_LIBRARIES ${BerkeleyDB_LIBS}/libdb_cxx.a) + elseif(EXISTS ${BerkeleyDB_LIBS}/libdb_cxx.so) + list(APPEND ALL_LIBRARIES ${BerkeleyDB_LIBS}/libdb_cxx.so) + elseif(EXISTS ${BerkeleyDB_LIBS}/libdb_cxx.dylib) + list(APPEND ALL_LIBRARIES ${BerkeleyDB_LIBS}/libdb_cxx.dylib) + elseif(EXISTS ${BerkeleyDB_LIBS}/libdb_cxx.dll) + list(APPEND ALL_LIBRARIES ${BerkeleyDB_LIBS}/libdb_cxx.dll) + else() + message(FATAL_ERROR "Unable to find libdb_cxx library in ${BerkeleyDB_LIBS} directory. Try to specify either library path via BerkeleyDB_LIBS or berkeley db root path via BerkeleyDB_ROOT variable.") + endif() endif() if(USE_LEVELDB)