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)