1 # No pkg-config support in Berkeley DB, so try to find it manually
3 set(BDB_PREFIX "" CACHE PATH "path ")
5 find_path(BDB_INCLUDE_DIR db.h
6 PATHS ${BDB_PREFIX}/include /usr/include /usr/local/include)
8 find_library(BDB_LIBRARY NAMES db
9 PATHS ${BDB_PREFIX}/lib /usr/lib /usr/local/lib)
11 if(BDB_INCLUDE_DIR AND BDB_LIBRARY)
12 get_filename_component(BDB_LIBRARY_DIR ${BDB_LIBRARY} PATH)
17 if(NOT BDB_FIND_QUIETLY)
18 MESSAGE(STATUS "Found Berkeley DB: ${BDB_LIBRARY}")
22 message(FATAL_ERROR "Could not find Berkeley DB")