diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-04-07 17:56:18 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-04-07 17:56:18 -0400 |
commit | a8bc7182eaa39d8be61f5e2ed9d98184e5820f17 (patch) | |
tree | 08c5e2f911d2726662470dae48c53f5c17aa1e50 /cmake | |
parent | updated unbound cmake for static builds (diff) | |
parent | Merges PR #37 (diff) | |
download | monero-a8bc7182eaa39d8be61f5e2ed9d98184e5820f17.tar.xz |
Merge BlockchainDB into upstream
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindBerkeleyDB.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cmake/FindBerkeleyDB.cmake b/cmake/FindBerkeleyDB.cmake new file mode 100644 index 000000000..916d8f9cc --- /dev/null +++ b/cmake/FindBerkeleyDB.cmake @@ -0,0 +1,25 @@ +# - Try to find Berkeley DB +# Once done this will define +# +# BERKELEY_DB_FOUND - system has Berkeley DB +# BERKELEY_DB_INCLUDE_DIR - the Berkeley DB include directory +# BERKELEY_DB_LIBRARIES - Link these to use Berkeley DB +# BERKELEY_DB_DEFINITIONS - Compiler switches required for using Berkeley DB + +# Copyright (c) 2006, Alexander Dymo, <adymo@kdevelop.org> +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +find_path(BERKELEY_DB_INCLUDE_DIR db_cxx.h + /usr/include/db4 + /usr/local/include/db4 +) + +find_library(BERKELEY_DB_LIBRARIES NAMES db_cxx ) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES) +# show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view +mark_as_advanced(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) + |