From: CryptoManiac Date: Mon, 20 Dec 2021 07:59:20 +0000 (+0300) Subject: Better detection of berkeleydb X-Git-Tag: nvc-v0.5.9~93 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=a75c7d626227b0af1126af5023340a1dece96102;hp=2bb79e002b14c778ce6e1b407a7add95eeda4437;p=novacoin.git Better detection of berkeleydb --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 72aa181..07773fd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -41,7 +41,7 @@ set(BerkeleyDB_INC ${BerkeleyDB_ROOT}/include) endif() if (NOT EXISTS ${BerkeleyDB_INC}/db_cxx.h) - message(FATAL_ERROR "Unable to find db_cxx.h header file in ${BerkeleyDB_INC} directory") + message(FATAL_ERROR "Unable to find db_cxx.h header file in ${BerkeleyDB_INC} directory. Try to specify either include directory path via BerkeleyDB_INC or berkeley db root path via BerkeleyDB_ROOT variable.") endif() # Set default library path for berkeley db @@ -100,7 +100,7 @@ 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") + 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() if(USE_LEVELDB)