diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-06 08:45:14 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-06 08:45:14 +0100 |
commit | 4dc7274f13be14eb6ca210f4297362b0ad0845a5 (patch) | |
tree | 2578a5972f48015f7191cb09ac24502907b5bde9 /cmake/modules | |
parent | 1a3cd3493b07c84b173a8e4ebce388c5db845a77 (diff) | |
parent | fc608f64ceaf6c040564f5c572c4ff600d76be7e (diff) | |
download | sink-4dc7274f13be14eb6ca210f4297362b0ad0845a5.tar.gz sink-4dc7274f13be14eb6ca210f4297362b0ad0845a5.zip |
Merge branch 'master' into develop
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/FindLMDB.cmake | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cmake/modules/FindLMDB.cmake b/cmake/modules/FindLMDB.cmake new file mode 100644 index 0000000..bd29036 --- /dev/null +++ b/cmake/modules/FindLMDB.cmake | |||
@@ -0,0 +1,29 @@ | |||
1 | # Try to find the LMBD libraries and headers | ||
2 | # LMDB_FOUND - system has LMDB lib | ||
3 | # LMDB_INCLUDE_DIR - the LMDB include directory | ||
4 | # LMDB_LIBRARIES - Libraries needed to use LMDB | ||
5 | |||
6 | # FindCWD based on FindGMP by: | ||
7 | # Copyright (c) 2006, Laurent Montel, <montel@kde.org> | ||
8 | # | ||
9 | # Redistribution and use is allowed according to the terms of the BSD license. | ||
10 | |||
11 | # Adapted from FindCWD by: | ||
12 | # Copyright 2013 Conrad Steenberg <conrad.steenberg@gmail.com> | ||
13 | # Aug 31, 2013 | ||
14 | |||
15 | # Adapted from FindLMDB by: | ||
16 | # Copyright 2015 Anatoly Baksheev <anatoly.baksheev@gmail.com> | ||
17 | # Mar 03, 2017 | ||
18 | |||
19 | find_path(LMDB_INCLUDE_DIR NAMES lmdb.h PATHS "$ENV{LMDB_DIR}/include") | ||
20 | find_library(LMDB_LIBRARIES NAMES lmdb PATHS "$ENV{LMDB_DIR}/lib" ) | ||
21 | |||
22 | include(FindPackageHandleStandardArgs) | ||
23 | find_package_handle_standard_args(LMDB DEFAULT_MSG LMDB_INCLUDE_DIR LMDB_LIBRARIES) | ||
24 | |||
25 | if(LMDB_FOUND) | ||
26 | mark_as_advanced(LMDB_INCLUDE_DIR LMDB_LIBRARIES) | ||
27 | |||
28 | set(LMDB_VERSION "${MDB_VERSION_MAJOR}.${MDB_VERSION_MINOR}.${MDB_VERSION_PATCH}") | ||
29 | endif() | ||